]> git.lyx.org Git - features.git/blobdiff - src/frontends/controllers/ControlSpellchecker.C
The func.diff patch. Functors work and some tiny cleanup.
[features.git] / src / frontends / controllers / ControlSpellchecker.C
index f5f6c820454d84383fa8118412ecf6638ca5d49e..9aa770f043e724f4063735607e6182c86c2d4b5a 100644 (file)
@@ -197,8 +197,8 @@ void ControlSpellchecker::check()
        PosIterator const beg = buffer()->pos_iterator_begin();
        PosIterator const end = buffer()->pos_iterator_end();
 
-       int start = distance(beg, cur);
-       int const total = start + distance(cur, end);
+       PosIterator::difference_type start = distance(beg, cur);
+       PosIterator::difference_type const total = start + distance(cur, end);
 
        if (cur != buffer()->pos_iterator_begin())
                for (; cur != end && isLetter(cur); ++cur, ++start);