summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-17 17:20:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-17 17:20:53 +0200
commit75d5767e68400b70ab55811b72198efc8f121686 (patch)
tree77ccf69e193e47cbfcf4ff9fecfcbe063f56cbf2 /extensions
parentddbf256f8ae8f3bcd02b01719c163602b17205fd (diff)
loplugin:oncevar: extensions (clang-cl)
Change-Id: Id82847d72a106976339fd64685a9029900a862bd
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updatecheck.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index c110656e61e0..e6d6a2cd0463 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -883,17 +883,17 @@ UpdateCheck::install()
OUString aInstallImage(m_aImageName);
osl::FileBase::getSystemPathFromFileURL(aInstallImage, aInstallImage);
- OUString aParameter;
sal_Int32 nFlags;
#if (defined LINUX || defined __sun)
nFlags = 42;
- aParameter = getBaseInstallation();
+ OUString aParameter = getBaseInstallation();
if( !aParameter.isEmpty() )
osl::FileBase::getSystemPathFromFileURL(aParameter, aParameter);
aParameter += " &";
#else
nFlags = c3s::SystemShellExecuteFlags::DEFAULTS;
+ OUString const aParameter;
#endif
rtl::Reference< UpdateCheckConfig > rModel = UpdateCheckConfig::get( m_xContext );