X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPSpell.cpp;h=09044af8560759993b5c41ae4c2654dfd66b5f5b;hb=ea6aed5b8bf38366aaa1eb15ce1b9f13de76987f;hp=0a60cd84ebc11b336356fe291df26d06f7b7e649;hpb=9d0ea8aeff32833a90b3fe64df0c5518a9e241be;p=lyx.git diff --git a/src/PSpell.cpp b/src/PSpell.cpp index 0a60cd84eb..09044af856 100644 --- a/src/PSpell.cpp +++ b/src/PSpell.cpp @@ -22,14 +22,13 @@ extern "C" { #include "PSpell.h" #include "WordLangTuple.h" -#include +#include "support/lassert.h" +using namespace std; +using namespace lyx::support; namespace lyx { -using std::endl; -using std::string; - PSpell::PSpell(BufferParams const &, string const & lang) : els(0), spell_error_object(0) @@ -99,14 +98,14 @@ enum PSpell::Result PSpell::check(WordLangTuple const & word) PspellManager * m = it->second.manager; int word_ok = pspell_manager_check(m, to_utf8(word.word()).c_str()); - BOOST_ASSERT(word_ok != -1); + LASSERT(word_ok != -1, /**/); if (word_ok) { res = OK; } else { PspellWordList const * sugs = pspell_manager_suggest(m, to_utf8(word.word()).c_str()); - BOOST_ASSERT(sugs != 0); + LASSERT(sugs != 0, /**/); els = pspell_word_list_elements(sugs); if (pspell_word_list_empty(sugs)) res = UNKNOWN_WORD;