diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-23 20:45:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-24 08:55:25 +0100 |
commit | fc67191ba272607655a9167b23054a7821cdd808 (patch) | |
tree | 48649afba01fbaef555d1f526fcc6f2790753077 /sfx2/source/menu | |
parent | 570fe620e9d573cfc9fc260e6518563c6a6c1a3c (diff) |
XubString->OUString
Change-Id: Ie6b44d1f4abe1826254ab5bb178d73606bd1283c
Diffstat (limited to 'sfx2/source/menu')
-rw-r--r-- | sfx2/source/menu/virtmenu.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx index 454ab9372475..005a140f10d9 100644 --- a/sfx2/source/menu/virtmenu.cxx +++ b/sfx2/source/menu/virtmenu.cxx @@ -724,7 +724,7 @@ void SfxVirtualMenu::BindControllers() i != rCtrlArr.end(); ++i) { sal_uInt16 nSlotId = i->GetId(); - if ( !pSVMenu->GetItemCommand(nSlotId).Len() ) + if (pSVMenu->GetItemCommand(nSlotId).isEmpty()) { i->ReBind(); } @@ -995,10 +995,11 @@ IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu ) return sal_True; } - if ( pMenu->GetItemCommand( nSlotId ).Len() ) - pBindings->ExecuteCommand_Impl( pMenu->GetItemCommand( nSlotId ) ); + OUString sCommand = pMenu->GetItemCommand(nSlotId); + if (!sCommand.isEmpty()) + pBindings->ExecuteCommand_Impl(sCommand); else - pBindings->Execute( nSlotId ); + pBindings->Execute(nSlotId); return sal_True; } |