#include "qt_helpers.h"
+#include "support/lassert.h"
#include "support/debug.h"
#include "Encoding.h"
#include <QEvent>
#include <QTextCodec>
-#include "boost/assert.hpp"
-
#include <map>
#include <string>
return 0;
}
- LYXERR(Debug::KEY, "Using codec " << fromqstr(codec->name()));
+ LYXERR(Debug::KEY, "Using codec " << codec->name());
if (!codec->canEncode(str)) {
LYXERR(Debug::KEY, "Oof. Can't encode the text !");
return;
}
LYXERR(Debug::KEY, "Getting key " << ev->key() << ", with text '"
- << fromqstr(ev->text()) << "'");
+ << ev->text() << "'");
// This is unsafe because ev->text() is the unicode representation of the
// key, not the name of the key. For example, Ctrl-x and Alt-x produce
// different texts.
return 0;
// UTF16 has a maximum of two characters.
- BOOST_ASSERT(text_.size() <= 2);
+ LASSERT(text_.size() <= 2, /**/);
if (lyxerr.debugging() && text_.size() > 1) {
// We don't know yet how well support the full ucs4 range.