From: Jean-Marc Lasgouttes Date: Fri, 7 Apr 2017 09:02:36 +0000 (+0200) Subject: Avoid using theServer() for no reason X-Git-Tag: 2.3.0alpha1~106 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b925728591829af96552f39cabea229efb1d6fdb;p=features.git Avoid using theServer() for no reason All it brings us is threatening to throw an exception to scare coverity off. --- diff --git a/src/LyX.cpp b/src/LyX.cpp index 9b54463730..12bdbe6666 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -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::const_iterator it = pimpl_->files_to_load_.begin();