]> git.lyx.org Git - lyx.git/blobdiff - src/AppleSpellChecker.cpp
Use the proper buffer when recording undo
[lyx.git] / src / AppleSpellChecker.cpp
index 189ada71cf730bcc54b642202c355ffe289e48fc..f5bfe2314396dbf0065a6b5fa089c710a7eee659 100644 (file)
@@ -13,7 +13,6 @@
 #include "AppleSpellChecker.h"
 #include "WordLangTuple.h"
 
-#include "support/lassert.h"
 #include "support/debug.h"
 #include "support/docstring_list.h"
 #include "support/AppleSpeller.h"
@@ -32,13 +31,13 @@ struct AppleSpellChecker::Private
        SpellChecker::Result toResult(SpellCheckResult status);
        string toString(SpellCheckResult status);
        int numDictionaries() const;
-       
+
        /// the speller
        AppleSpeller speller;
-       
+
        /// language map
        map<string, string> languageMap;
-       
+
 };
 
 
@@ -138,7 +137,7 @@ void AppleSpellChecker::suggest(WordLangTuple const & wl,
 {
        suggestions.clear();
        string const word_str = to_utf8(wl.word());
-       size_t num = AppleSpeller_makeSuggestion(d->speller, 
+       size_t num = AppleSpeller_makeSuggestion(d->speller,
                                        word_str.c_str(), wl.lang()->code().c_str());
        for (size_t i = 0; i < num; i++) {
                char const * next = AppleSpeller_getSuggestion(d->speller, i);
@@ -182,7 +181,7 @@ int AppleSpellChecker::numDictionaries() const
        return result;
 }
 
-       
+
 int AppleSpellChecker::numMisspelledWords() const
 {
        return AppleSpeller_numMisspelledWords(d->speller);