diff options
author | Noel Grandin <noel@peralex.com> | 2013-07-30 16:50:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-07-31 13:36:52 +0200 |
commit | 43b1ac3651732a1ceb193268ab72b4aaa90dee65 (patch) | |
tree | 19709be5b1bef0d481fdfdc29a69a643815f1621 /framework/source/uielement | |
parent | 93257759580e6df10cc9eddbf1800a17d61cfc48 (diff) |
convert vcl/menu.hxx from XubString to OUString
Change-Id: I9469363c09e4cc863ad4d8ddddf8d923fe444e25
Diffstat (limited to 'framework/source/uielement')
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 7f7f69a575fb..23baa7468916 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -845,7 +845,7 @@ IMPL_LINK( MenuBarManager, Activate, Menu *, pMenu ) { sal_uInt16 nItemId = pMenu->GetItemId( nPos ); if (( pMenu->GetItemType( nPos ) != MENUITEM_SEPARATOR ) && - ( pMenu->GetItemText( nItemId ).Len() == 0 )) + ( pMenu->GetItemText( nItemId ).isEmpty() )) { String aCommand = pMenu->GetItemCommand( nItemId ); if ( aCommand.Len() > 0 ) { @@ -1252,7 +1252,7 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF } if (( pMenu->IsMenuBar() || bAccessibilityEnabled ) && - ( pMenu->GetItemText( nItemId ).Len() == 0 )) + ( pMenu->GetItemText( nItemId ).isEmpty() )) { if ( !aItemCommand.isEmpty() ) pMenu->SetItemText( nItemId, RetrieveLabelFromCommand( aItemCommand )); @@ -1272,7 +1272,7 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF { // Retrieve module identifier from Help Command entry OUString aModuleIdentifier( rModuleIdentifier ); - if ( pMenu->GetHelpCommand( nItemId ).Len() > 0 ) + if ( !pMenu->GetHelpCommand( nItemId ).isEmpty() ) { aModuleIdentifier = pMenu->GetHelpCommand( nItemId ); pMenu->SetHelpCommand( nItemId, aEmpty ); |