diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-05-17 09:47:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-19 09:42:41 +0200 |
commit | 10749bbf8247f0b17201b33f95a090dfc4fc3211 (patch) | |
tree | c34474977546aaccb6d5cd30ac4b45b1d422c11d /sfx2 | |
parent | df64e7c709fc6d771546554b4026583c55609105 (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.cxx | 4 |
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 |