]> git.lyx.org Git - lyx.git/blobdiff - src/aspell.C
fix reading the author field.
[lyx.git] / src / aspell.C
index a16b7025e4f64e420a6ab7a4bd6444597e8338cb..4541ea01eba6576bda65f1153d75758b4130dd9a 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file aspell_local.C
+ * \file aspell.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -13,7 +13,6 @@
 
 #ifdef USE_ASPELL
 
-#include "support/LAssert.h"
 #include "debug.h"
 
 #include <aspell.h>
 #include "aspell_local.h"
 #include "WordLangTuple.h"
 
+#include <boost/assert.hpp>
 
-using namespace lyx::support;
+using std::string;
 
-using std::endl;
 
 ASpell::ASpell(BufferParams const &, string const & lang)
        : els(0), spell_error_object(0)
@@ -90,14 +89,14 @@ enum ASpell::Result ASpell::check(WordLangTuple const & word)
        AspellSpeller * m = it->second.speller;
 
        int word_ok = aspell_speller_check(m, word.word().c_str(), -1);
-       Assert(word_ok != -1);
+       BOOST_ASSERT(word_ok != -1);
 
        if (word_ok) {
                res = OK;
        } else {
                AspellWordList const * sugs =
                        aspell_speller_suggest(m, word.word().c_str(), -1);
-               Assert(sugs != 0);
+               BOOST_ASSERT(sugs != 0);
                els = aspell_word_list_elements(sugs);
                if (aspell_word_list_empty(sugs))
                        res = UNKNOWN;