]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/lyx_gui.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / lyx_gui.C
index d4579ab0485a0d39034aeff40c538fe630a38b13..de220cdc583e3b7f6abef03ce04cbd5985785b1a 100644 (file)
 
 #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;
 
@@ -303,10 +304,8 @@ void start(string const & batch, vector<string> const & files)
        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())
@@ -357,9 +356,9 @@ string const hexname(LColor_color col)
                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