WaE: ‘nPos’ may be used uninitialized in this function
Change-Id: I993492fa3c3355eeb8d57b4262e176bc2f439f7e
This commit is contained in:
@@ -3696,7 +3696,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong
|
|||||||
OUString aTmpEntryText( ResId( SV_RESID_STRING_NOSELECTIONPOSSIBLE, *pResMgr ) );
|
OUString aTmpEntryText( ResId( SV_RESID_STRING_NOSELECTIONPOSSIBLE, *pResMgr ) );
|
||||||
MenuItemData* pData = pItemList->Insert(
|
MenuItemData* pData = pItemList->Insert(
|
||||||
0xFFFF, MENUITEM_STRING, 0, aTmpEntryText, Image(), NULL, 0xFFFF, OString() );
|
0xFFFF, MENUITEM_STRING, 0, aTmpEntryText, Image(), NULL, 0xFFFF, OString() );
|
||||||
size_t nPos;
|
size_t nPos = 0;
|
||||||
pData = pItemList->GetData( pData->nId, nPos );
|
pData = pItemList->GetData( pData->nId, nPos );
|
||||||
pData->bIsTemporary = true;
|
pData->bIsTemporary = true;
|
||||||
ImplCallEventListeners(VCLEVENT_MENU_SUBMENUCHANGED, nPos);
|
ImplCallEventListeners(VCLEVENT_MENU_SUBMENUCHANGED, nPos);
|
||||||
|
Reference in New Issue
Block a user