]> git.lyx.org Git - lyx.git/blobdiff - src/AppleSpellChecker.cpp
Use the proper buffer when recording undo
[lyx.git] / src / AppleSpellChecker.cpp
index cb80a60bd18eec21f131c008d1d75a5cb6d1fb9e..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;
-       
+
 };
 
 
@@ -55,9 +54,9 @@ AppleSpellChecker::Private::~Private()
 }
 
 
-AppleSpellChecker::AppleSpellChecker(): d(new Private)
-{
-}
+AppleSpellChecker::AppleSpellChecker()
+       : d(new Private)
+{}
 
 
 AppleSpellChecker::~AppleSpellChecker()
@@ -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);