[Libreoffice-commits] core.git: extensions/source

Stephan Bergmann sbergman at redhat.com
Fri Jun 30 05:38:38 UTC 2017


 extensions/source/update/check/updatecheck.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 8092155136090778fe8efb651b7940937819c08c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 30 07:38:08 2017 +0200

    loplugin:oncevar
    
    Change-Id: I3c292591aa178b05d8c9aae51031c7a9fd6817a4

diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index 4e9f9be10a9b..895a07f81baf 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -884,7 +884,7 @@ UpdateCheck::install()
         osl::FileBase::getSystemPathFromFileURL(aInstallImage, aInstallImage);
 
         OUString aParameter;
-        sal_Int32 nFlags = c3s::SystemShellExecuteFlags::DEFAULTS;
+        sal_Int32 nFlags;
 #if (defined LINUX || defined __sun)
         nFlags = 42;
         aParameter = getBaseInstallation();
@@ -892,6 +892,8 @@ UpdateCheck::install()
             osl::FileBase::getSystemPathFromFileURL(aParameter, aParameter);
 
         aParameter += " &";
+#else
+        nFlags = c3s::SystemShellExecuteFlags::DEFAULTS;
 #endif
 
         rtl::Reference< UpdateCheckConfig > rModel = UpdateCheckConfig::get( m_xContext );


More information about the Libreoffice-commits mailing list