Kaydet (Commit) 66094c6a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:oncevar

Change-Id: Iee9987aeafed126e4324d8d487289469577fafa2
üst 40f3a942
...@@ -411,14 +411,13 @@ void aqua_init_systray() ...@@ -411,14 +411,13 @@ void aqua_init_systray()
std::set< rtl::OUString > aFileNewAppsAvailable; std::set< rtl::OUString > aFileNewAppsAvailable;
SvtDynamicMenuOptions aOpt; SvtDynamicMenuOptions aOpt;
css::uno::Sequence < css::uno::Sequence < css::beans::PropertyValue > > aNewMenu = aOpt.GetMenu( E_NEWMENU ); 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 >* pNewMenu = aNewMenu.getConstArray();
const css::uno::Sequence< css::beans::PropertyValue >* pNewMenuEnd = aNewMenu.getConstArray() + aNewMenu.getLength(); const css::uno::Sequence< css::beans::PropertyValue >* pNewMenuEnd = aNewMenu.getConstArray() + aNewMenu.getLength();
for ( ; pNewMenu != pNewMenuEnd; ++pNewMenu ) for ( ; pNewMenu != pNewMenuEnd; ++pNewMenu )
{ {
comphelper::SequenceAsHashMap aEntryItems( *pNewMenu ); comphelper::SequenceAsHashMap aEntryItems( *pNewMenu );
rtl::OUString sURL( aEntryItems.getUnpackedValueOrDefault( sURLKey, rtl::OUString() ) ); rtl::OUString sURL( aEntryItems.getUnpackedValueOrDefault( "URL", rtl::OUString() ) );
if ( sURL.getLength() ) if ( sURL.getLength() )
aFileNewAppsAvailable.insert( sURL ); aFileNewAppsAvailable.insert( sURL );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment