diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 15:06:53 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:45 +0200 |
commit | 9ef6565f18343ec4f6fd010a74cf2be045a3e670 (patch) | |
tree | 2a0647be4ce8b4841282bd32227bb20e8643d7b4 /framework | |
parent | 260c5f70b707b82db016afa6e7c209c23a10bd1d (diff) |
cppcheck scope reduction in framework/.. menubarmanager.cxx
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 3de401d53e7e..b66c7fd8a5ee 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -1369,10 +1369,10 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF AddonMenuManager::HasAddonMenuElements() ) { // Create addon popup menu if there exist elements and this is the tools popup menu - sal_uInt16 nCount = 0; AddonMenu* pSubMenu = AddonMenuManager::CreateAddonMenu( rFrame ); if ( pSubMenu && ( pSubMenu->GetItemCount() > 0 )) { + sal_uInt16 nCount = 0; if ( pPopup->GetItemType( nCount-1 ) != MENUITEM_SEPARATOR ) pPopup->InsertSeparator(); |