]> git.lyx.org Git - lyx.git/blobdiff - src/aspell.C
Point fix, earlier forgotten
[lyx.git] / src / aspell.C
index a59ff568717eb3cce94d849c5d2560944a93a2d7..ca5ff77c9391b658d5f873e10ebefcb7d46de6d7 100644 (file)
@@ -1,10 +1,12 @@
 /**
- * \file aspell.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * \file aspell_local.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Kevin Atkinson
- * \author John Levon <levon@movementarian.org>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
@@ -19,6 +21,8 @@
 #include "aspell_local.h"
 #include "WordLangTuple.h"
 
+using namespace lyx::support;
+
 using std::endl;
 
 ASpell::ASpell(BufferParams const &, string const & lang)
@@ -85,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);
-       lyx::Assert(word_ok != -1);
+       Assert(word_ok != -1);
 
        if (word_ok) {
                res = OK;
        } else {
                AspellWordList const * sugs =
                        aspell_speller_suggest(m, word.word().c_str(), -1);
-               lyx::Assert(sugs != 0);
+               Assert(sugs != 0);
                els = aspell_word_list_elements(sugs);
                if (aspell_word_list_empty(sugs))
                        res = UNKNOWN;