#include <boost/bind.hpp>
-#include "support/std_sstream.h"
-#include <iomanip>
#include <fcntl.h>
+#include <sstream>
+#include <iomanip>
+
using lyx::support::AddName;
using lyx::support::user_lyxdir;
lyxsocket = new LyXServerSocket(&view->getLyXFunc(),
os::slashify_path(os::getTmpDir() + "/lyxsocket"));
- vector<string>::const_iterator cit = files.begin();
- vector<string>::const_iterator end = files.end();
- for (; cit != end; ++cit)
- view->view()->loadLyXFile(*cit, true);
+ for_each(files.begin(), files.end(),
+ bind(&BufferView::loadLyXFile, view->view(), _1, true));
// handle the batch commands the user asked for
if (!batch.empty())
lyxerr << "X can't find color for \"" << lcolor.getLyXName(col)
<< '"' << endl;
return string();
- }
+ }
- ostringstream os;
+ ostringstream os;
os << setbase(16) << setfill('0')
<< setw(2) << r