]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/lyx_gui.C
* LyXView: the accessor methods now return a reference to the member
[features.git] / src / frontends / qt2 / lyx_gui.C
index acb9e932cbbe76ed5e11d395de0d4bfc3478041b..b0d3b460e322ff50e67551a5d7eda22d873fe9ff 100644 (file)
@@ -89,7 +89,7 @@ void lyx_gui::start(string const & batch, vector<string> files)
 
        // FIXME: some code below needs moving
 
-       lyxserver = new LyXServer(view.getLyXFunc(), lyxrc.lyxpipes);
+       lyxserver = new LyXServer(&view.getLyXFunc(), lyxrc.lyxpipes);
 
        vector<string>::const_iterator cit = files.begin();
        vector<string>::const_iterator end = files.end();
@@ -107,7 +107,7 @@ void lyx_gui::start(string const & batch, vector<string> files)
 
        // handle the batch commands the user asked for
        if (!batch.empty()) {
-               view.getLyXFunc()->dispatch(batch);
+               view.getLyXFunc().dispatch(batch);
        }
 
        qApp->exec();