diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 15:05:02 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:45 +0200 |
commit | 260c5f70b707b82db016afa6e7c209c23a10bd1d (patch) | |
tree | fac0c8ab8c50d8cc6b59d4b9e3d907a3e3d688a3 /framework/source | |
parent | b94d6e85c54e21431d25cc579de30ad58759b5a2 (diff) |
cppcheck scope reduction in framework/... menumanager.cxx
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/classes/menumanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx index 80519d57987a..edf9d2d94e0e 100644 --- a/framework/source/classes/menumanager.cxx +++ b/framework/source/classes/menumanager.cxx @@ -184,10 +184,10 @@ MenuManager::MenuManager( aItemCommand.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(aSlotSpecialToolsMenu)) ) && AddonMenuManager::HasAddonMenuElements() ) { - sal_uInt16 nCount = 0; AddonMenu* pSubMenu = AddonMenuManager::CreateAddonMenu( rFrame ); if ( pSubMenu && ( pSubMenu->GetItemCount() > 0 )) { + sal_uInt16 nCount = 0; if ( pPopupMenu->GetItemType( nCount-1 ) != MENUITEM_SEPARATOR ) pPopupMenu->InsertSeparator(); |