]> git.lyx.org Git - features.git/commitdiff
Avoid using theServer() for no reason
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 7 Apr 2017 09:02:36 +0000 (11:02 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 7 Apr 2017 09:04:57 +0000 (11:04 +0200)
All it brings us is threatening to throw an exception to scare coverity off.

src/LyX.cpp

index 9b54463730a4b72eb9cb31d92dfbad7bd0e81190..12bdbe6666afac3463f8523cc4cd61fc01d993a4 100644 (file)
@@ -394,7 +394,7 @@ int LyX::exec(int & argc, char * argv[])
                        FileName(package().temp_dir().absFileName() + "/lyxsocket")));
 
        // Start the real execution loop.
-       if (!theServer().deferredLoadingToOtherInstance())
+       if (!pimpl_->lyx_server_->deferredLoadingToOtherInstance())
                exit_status = pimpl_->application_->exec();
        else if (!pimpl_->files_to_load_.empty()) {
                vector<string>::const_iterator it = pimpl_->files_to_load_.begin();