summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/app/app.cxx1
-rw-r--r--desktop/source/migration/migration.cxx3
2 files changed, 1 insertions, 3 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 1ed400fd236b..d6e3cd7a0d52 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -2145,7 +2145,6 @@ void Desktop::PreloadConfigurationData()
rtl::OUString( "com.sun.star.ui.WindowStateConfiguration" )), UNO_QUERY );
if ( xNameAccess.is() )
{
- Any a;
Reference< XNameAccess > xWindowAccess;
try
{
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx
index 8424f0975400..57e93aba893f 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -93,8 +93,7 @@ static const char XDG_CONFIG_PART[] = "/.config";
uno::Reference< container::XNameAccess > xUICommands;
uno::Reference< container::XNameAccess > xNameAccess( ui::UICommandDescription::create(::comphelper::getProcessComponentContext()) );
- uno::Any a = xNameAccess->getByName( sModuleIdentifier );
- a >>= xUICommands;
+ xNameAccess->getByName( sModuleIdentifier ) >>= xUICommands;
if (xUICommands.is())
{
if ( !sCommand.isEmpty() )