summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/source/update/check/updatecheck.cxx6
-rw-r--r--extensions/source/update/check/updatecheckconfig.cxx3
2 files changed, 3 insertions, 6 deletions
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index b4a5152a563e..71a7b1239f63 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -1464,8 +1464,6 @@ UpdateCheck::storeReleaseNote(sal_Int8 nNum, const OUString &rURL)
void UpdateCheck::showExtensionDialog()
{
- OUString sServiceName = "com.sun.star.deployment.ui.PackageManagerDialog";
- OUString sArguments = "SHOW_UPDATE_DIALOG";
uno::Reference< uno::XInterface > xService;
if( ! m_xContext.is() )
@@ -1477,10 +1475,10 @@ void UpdateCheck::showExtensionDialog()
throw uno::RuntimeException(
"UpdateCheck::showExtensionDialog(): unable to obtain service manager from component context", uno::Reference< uno::XInterface > () );
- xService = xServiceManager->createInstanceWithContext( sServiceName, m_xContext );
+ xService = xServiceManager->createInstanceWithContext( "com.sun.star.deployment.ui.PackageManagerDialog", m_xContext );
uno::Reference< task::XJobExecutor > xExecuteable( xService, uno::UNO_QUERY );
if ( xExecuteable.is() )
- xExecuteable->trigger( sArguments );
+ xExecuteable->trigger( "SHOW_UPDATE_DIALOG" );
}
diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx
index 546325e74861..0db924341208 100644
--- a/extensions/source/update/check/updatecheckconfig.cxx
+++ b/extensions/source/update/check/updatecheckconfig.cxx
@@ -308,10 +308,9 @@ UpdateCheckConfig::getLocalFileName() const
OUString
UpdateCheckConfig::getDownloadDestination() const
{
- OUString aName = DOWNLOAD_DESTINATION;
OUString aRet;
- const_cast <UpdateCheckConfig *> (this)->getByName(aName) >>= aRet;
+ const_cast <UpdateCheckConfig *> (this)->getByName(DOWNLOAD_DESTINATION) >>= aRet;
return aRet;
}