diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-11-30 18:38:39 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-11-30 18:39:06 +0100 |
commit | b99bee2b0c4e1a8e495d122d2c64c75b94e0026d (patch) | |
tree | 55c69ac6ab7bd6e1234475dd82ac4832cfc17b53 /vcl/source/window/menu.cxx | |
parent | c2dd0ef4b891a3d126dbe70ab5b76016b69d491c (diff) |
WaE: ‘nPos’ may be used uninitialized in this function
Change-Id: I993492fa3c3355eeb8d57b4262e176bc2f439f7e
Diffstat (limited to 'vcl/source/window/menu.cxx')
-rw-r--r-- | vcl/source/window/menu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 2a83c97424c0..647f57c29a3d 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3696,7 +3696,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong OUString aTmpEntryText( ResId( SV_RESID_STRING_NOSELECTIONPOSSIBLE, *pResMgr ) ); MenuItemData* pData = pItemList->Insert( 0xFFFF, MENUITEM_STRING, 0, aTmpEntryText, Image(), NULL, 0xFFFF, OString() ); - size_t nPos; + size_t nPos = 0; pData = pItemList->GetData( pData->nId, nPos ); pData->bIsTemporary = true; ImplCallEventListeners(VCLEVENT_MENU_SUBMENUCHANGED, nPos); |