/**
* \file aspell.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * 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>
#ifdef USE_ASPELL
-#include "support/LAssert.h"
#include "debug.h"
#include <aspell.h>
#include "aspell_local.h"
#include "WordLangTuple.h"
-using namespace lyx::support;
+#include <boost/assert.hpp>
+
+using std::string;
-using std::endl;
ASpell::ASpell(BufferParams const &, string const & lang)
: els(0), spell_error_object(0)
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;