summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-05-17 09:47:07 +0200
committerNoel Grandin <noel@peralex.com>2015-05-19 09:42:41 +0200
commit10749bbf8247f0b17201b33f95a090dfc4fc3211 (patch)
treec34474977546aaccb6d5cd30ac4b45b1d422c11d /sfx2
parentdf64e7c709fc6d771546554b4026583c55609105 (diff)
remove the last of the OUString #defines in header files
Change-Id: Id9e8ce7987e055e83b52c7024413570f262e6e8d
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/menu/virtmenu.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index 121dd945dbbf..e14bb24e24e1 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -623,7 +623,6 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu )
// Search , as SV with 'sal_uInt16 nSID = pSVMenu->GetCurItemId();' always
// returns 0. It is like this, since the Event-Forwarding has nothing to do
// with the Parent-Menus CurItem.
- sal_uInt32 nAddonsPopupPrefixLen = ADDONSPOPUPMENU_URL_PREFIX.getLength();
for ( sal_uInt16 nPos = 0; nPos < nCount; ++nPos )
{
@@ -646,8 +645,7 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu )
OUString aCommand = pSVMenu->GetItemCommand( nSID );
if ( ( nSID == SID_ADDONS ) ||
( nSID == SID_ADDONHELP ) ||
- (( (sal_uInt32)aCommand.getLength() > nAddonsPopupPrefixLen ) &&
- ( aCommand.startsWith( ADDONSPOPUPMENU_URL_PREFIX ) ) ) )
+ ( aCommand.startsWith( ADDONSPOPUPMENU_URL_PREFIX_STR ) ) )
bIsAddonPopupMenu = true;
// Create VirtualMenu for Sub-Menu