mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1087308 - Fix one bad implicit constructor in spellchecker; r=smaug
This commit is contained in:
parent
1a42e3f266
commit
2a8b3122f1
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user