#include "support/lyxfunctional.h"
#include "support/LAssert.h"
+#include <boost/bind.hpp>
+
#include <cassert>
#include <algorithm>
#include <functional>
void BufferList::emergencyWriteAll()
{
for_each(bstore.begin(), bstore.end(),
- lyx::void_class_fun(*this, &BufferList::emergencyWrite));
+ boost::bind(&BufferList::emergencyWrite, this, _1));
}
if (buf->isClean())
return;
- lyxerr << _("lyx: Attempting to save document ")
- << (buf->isUnnamed() ? OnlyFilename(buf->fileName())
- : buf->fileName())
- << _(" as...") << endl;
+ string const doc = buf->isUnnamed()
+ ? OnlyFilename(buf->fileName()) : buf->fileName();
+
+ lyxerr << _("LyX: Attempting to save document ") << doc << endl;
// We try to save three places: