Bug 1087308 - Fix one bad implicit constructor in spellchecker; r=smaug

This commit is contained in:
Ehsan Akhgari 2014-10-10 17:28:35 -04:00
parent 1a42e3f266
commit 2a8b3122f1

View File

@ -667,7 +667,7 @@ class FirstLargerOffset
int32_t mSoftTextOffset;
public:
FirstLargerOffset(int32_t aSoftTextOffset) : mSoftTextOffset(aSoftTextOffset) {}
explicit FirstLargerOffset(int32_t aSoftTextOffset) : mSoftTextOffset(aSoftTextOffset) {}
int operator()(const T& t) const {
// We want the first larger offset, so never return 0 (which would
// short-circuit evaluation before finding the last such offset).