Kaydet (Commit) 6fc9d4a4 authored tarafından Mike Kaganski's avatar Mike Kaganski

Remove redundant variable

Change-Id: I062ea13827d7d9744b0965b305877633485015fa
Reviewed-on: https://gerrit.libreoffice.org/48405Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 77a53528
...@@ -473,11 +473,11 @@ void Desktop::Init() ...@@ -473,11 +473,11 @@ void Desktop::Init()
} }
// Check whether safe mode is enabled // Check whether safe mode is enabled
CommandLineArgs& rCmdLine = GetCommandLineArgs(); const CommandLineArgs& rCmdLineArgs = GetCommandLineArgs();
// Check if we are restarting from safe mode - in that case we don't want to enter it again // Check if we are restarting from safe mode - in that case we don't want to enter it again
if (sfx2::SafeMode::hasRestartFlag()) if (sfx2::SafeMode::hasRestartFlag())
sfx2::SafeMode::removeRestartFlag(); sfx2::SafeMode::removeRestartFlag();
else if (rCmdLine.IsSafeMode() || sfx2::SafeMode::hasFlag()) else if (rCmdLineArgs.IsSafeMode() || sfx2::SafeMode::hasFlag())
Application::EnableSafeMode(); Application::EnableSafeMode();
// When we are in SafeMode we need to do changes before the configuration // When we are in SafeMode we need to do changes before the configuration
...@@ -514,8 +514,6 @@ void Desktop::Init() ...@@ -514,8 +514,6 @@ void Desktop::Init()
if ( true ) if ( true )
{ {
const CommandLineArgs& rCmdLineArgs = GetCommandLineArgs();
// start ipc thread only for non-remote offices // start ipc thread only for non-remote offices
RequestHandler::Status aStatus = RequestHandler::Enable(true); RequestHandler::Status aStatus = RequestHandler::Enable(true);
if ( aStatus == RequestHandler::IPC_STATUS_PIPE_ERROR ) if ( aStatus == RequestHandler::IPC_STATUS_PIPE_ERROR )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment