#include <config.h>
-#include "debug.h"
+#include "support/debug.h"
#define USE_ORIGINAL_MANAGER_FUNCS 1
// new aspell pspell missing extern "C"
#include "PSpell.h"
#include "WordLangTuple.h"
-#include <boost/assert.hpp>
+#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)
{
addManager(lang);
- LYXERR(Debug::GUI) << "created pspell" << endl;
+ LYXERR(Debug::GUI, "created pspell");
}
PSpell::~PSpell()
{
- LYXERR(Debug::GUI) << "killed pspell" << endl;
+ LYXERR(Debug::GUI, "killed pspell");
if (spell_error_object) {
delete_pspell_can_have_error(spell_error_object);
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;