X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAppleSpellChecker.cpp;h=0a82d38b3228f04ee27ad3e45bbd889e6947690d;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=4f22a5e09db609425ae0ce84f4d98ede0ea4e9ea;hpb=3f75fb7a481e8a12653b02523f855c16625c4526;p=lyx.git diff --git a/src/AppleSpellChecker.cpp b/src/AppleSpellChecker.cpp index 4f22a5e09d..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; @@ -92,7 +92,7 @@ SpellChecker::Result AppleSpellChecker::check(WordLangTuple const & word, if (it->lang()->code() != word.lang()->code()) continue; if (it->word() == word.word()) - return LEARNED_WORD; + return DOCUMENT_LEARNED_WORD; } SpellCheckResult result =