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

Stephan Bergmann sbergman at redhat.com
Mon Jul 17 15:21:34 UTC 2017


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

New commits:
commit 75d5767e68400b70ab55811b72198efc8f121686
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 17 17:20:53 2017 +0200

    loplugin:oncevar: extensions (clang-cl)
    
    Change-Id: Id82847d72a106976339fd64685a9029900a862bd

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 );


More information about the Libreoffice-commits mailing list