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

Stephan Bergmann sbergman at redhat.com
Tue Nov 10 03:54:25 PST 2015


 sfx2/source/appl/shutdowniconaqua.mm |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 66094c6ab5776d0ce871621922b90140e01982a6
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 10 12:53:59 2015 +0100

    loplugin:oncevar
    
    Change-Id: Iee9987aeafed126e4324d8d487289469577fafa2

diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm
index e231aac..f18791b 100644
--- a/sfx2/source/appl/shutdowniconaqua.mm
+++ b/sfx2/source/appl/shutdowniconaqua.mm
@@ -411,14 +411,13 @@ void aqua_init_systray()
             std::set< rtl::OUString > aFileNewAppsAvailable;
             SvtDynamicMenuOptions aOpt;
             css::uno::Sequence < css::uno::Sequence < css::beans::PropertyValue > > aNewMenu = aOpt.GetMenu( E_NEWMENU );
-            const rtl::OUString sURLKey( "URL" );
 
             const css::uno::Sequence< css::beans::PropertyValue >* pNewMenu = aNewMenu.getConstArray();
             const css::uno::Sequence< css::beans::PropertyValue >* pNewMenuEnd = aNewMenu.getConstArray() + aNewMenu.getLength();
             for ( ; pNewMenu != pNewMenuEnd; ++pNewMenu )
             {
                 comphelper::SequenceAsHashMap aEntryItems( *pNewMenu );
-                rtl::OUString sURL( aEntryItems.getUnpackedValueOrDefault( sURLKey, rtl::OUString() ) );
+                rtl::OUString sURL( aEntryItems.getUnpackedValueOrDefault( "URL", rtl::OUString() ) );
                 if ( sURL.getLength() )
                     aFileNewAppsAvailable.insert( sURL );
             }


More information about the Libreoffice-commits mailing list