cppcheck scope reduction in framework/... menumanager.cxx

This commit is contained in:
Pierre-André Jacquod 2011-10-02 15:05:02 +02:00
parent b94d6e85c5
commit 260c5f70b7

View file

@ -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();