From 260c5f70b707b82db016afa6e7c209c23a10bd1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Andr=C3=A9=20Jacquod?= Date: Sun, 2 Oct 2011 15:05:02 +0200 Subject: [PATCH] cppcheck scope reduction in framework/... menumanager.cxx --- framework/source/classes/menumanager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();