X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAppleSpellChecker.cpp;h=0a82d38b3228f04ee27ad3e45bbd889e6947690d;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=197512132844e580b9f395a79f53d65bb2887529;hpb=07396ab2445720b21dc8195816eb1aee1f2ae3a7;p=lyx.git diff --git a/src/AppleSpellChecker.cpp b/src/AppleSpellChecker.cpp index 1975121328..0a82d38b32 100644 --- a/src/AppleSpellChecker.cpp +++ b/src/AppleSpellChecker.cpp @@ -79,7 +79,7 @@ string AppleSpellChecker::Private::toString(SpellCheckResult status) SpellChecker::Result AppleSpellChecker::check(WordLangTuple const & word, - std::vector docdict) + std::vector const & docdict) { if (!hasDictionary(word.lang())) return NO_DICTIONARY; @@ -87,12 +87,12 @@ SpellChecker::Result AppleSpellChecker::check(WordLangTuple const & word, string const word_str = to_utf8(word.word()); string const lang = d->languageMap[word.lang()->lang()]; - vector::const_iterator it = docdict.begin(); + vector::const_iterator it = docdict.begin(); for (; it != docdict.end(); ++it) { if (it->lang()->code() != word.lang()->code()) continue; if (it->word() == word.word()) - return LEARNED_WORD; + return DOCUMENT_LEARNED_WORD; } SpellCheckResult result =