diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 07:38:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 07:38:08 +0200 |
commit | 8092155136090778fe8efb651b7940937819c08c (patch) | |
tree | ebe18580935a7351b47ef04a5595b5fd2c66062a /extensions | |
parent | 77f77c57d336ba041faf51e2168372d1e0962a19 (diff) |
loplugin:oncevar
Change-Id: I3c292591aa178b05d8c9aae51031c7a9fd6817a4
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/check/updatecheck.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |