Avoid using theServer() for no reason

All it brings us is threatening to throw an exception to scare coverity off.
This commit is contained in:
Jean-Marc Lasgouttes 2017-04-07 11:02:36 +02:00
parent 74bcd5d26c
commit b925728591

View File

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