]> 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 14ff26790e3380ee43e7732efb45541873f8b56d..de220cdc583e3b7f6abef03ce04cbd5985785b1a 100644 (file)
@@ -304,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())
@@ -358,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