diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-24 16:37:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-25 09:26:14 +0100 |
commit | d785059238abf7ee28aec1b6555dcd38c5b6c61f (patch) | |
tree | 9c5a26f136141ad8347b4362f868e2667ed863b7 /vcl/source | |
parent | cf9b0830c5e574d6c4a16ea2a179720dde26e811 (diff) |
WaE: nPos potentially uninitialized with gcc 4.7.0
Change-Id: Ie02cf6154b7536a46cd3753c526f7c390e57a40e
Diffstat (limited to 'vcl/source')
-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 04619eb545a2..3f695bda99dd 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3563,7 +3563,7 @@ void PopupMenu::SelectEntry( sal_uInt16 nId ) { if( nId != ITEMPOS_INVALID ) { - size_t nPos; + size_t nPos = 0; MenuItemData* pData = GetItemList()->GetData( nId, nPos ); if ( pData->pSubMenu ) ImplGetFloatingWindow()->ChangeHighlightItem( nPos, sal_True ); |