#include "MailInset.h"
#include "BufferView.h"
-#include "debug.h"
+#include "support/debug.h"
#include "frontends/Application.h"
#include <boost/assert.hpp>
+using namespace std;
namespace lyx {
-using std::string;
-
void MailInset::showDialog(BufferView * bv) const
{
void MailInset::hideDialog() const
{
- theApp()->hideDialogs(name(), &inset());
+ if (theApp())
+ theApp()->hideDialogs(name(), &inset());
}
void print_mailer_error(string const & class_name,
string const & data, int arg_id, string const & arg)
{
- lyxerr << '\n' << class_name << "::string2params(" << data << ")\n"
- << "Expected arg " << arg_id << " to be \"" << arg << "\"\n"
- << std::endl;
+ LYXERR0('\n' << class_name << "::string2params(" << data << ")\n"
+ << "Expected arg " << arg_id << " to be \"" << arg << "\"\n");
}