summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdowniconw32.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-22 17:57:48 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-23 05:53:41 +0000
commitea644f0e90d0c9585e73bdec240908803a38d4a6 (patch)
treedf140769eaf45d4205d4ac50147809597e3e6d73 /sfx2/source/appl/shutdowniconw32.cxx
parenta6c0583675b6fe4210ae8249728fe5d4df125f5c (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I404f121ee2e5020359a662f54ffe341f466cd1d5 Reviewed-on: https://gerrit.libreoffice.org/13608 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/appl/shutdowniconw32.cxx')
-rw-r--r--sfx2/source/appl/shutdowniconw32.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx
index e20eb0d011d1..40c6c2036fdc 100644
--- a/sfx2/source/appl/shutdowniconw32.cxx
+++ b/sfx2/source/appl/shutdowniconw32.cxx
@@ -238,7 +238,6 @@ static void deleteSystrayMenu( HMENU hMenu )
return;
MENUITEMINFOW mi;
- MYITEM *pMyItem;
int pos=0;
memset( &mi, 0, sizeof( mi ) );
mi.cbSize = sizeof( mi );
@@ -246,7 +245,7 @@ static void deleteSystrayMenu( HMENU hMenu )
while( GetMenuItemInfoW( hMenu, pos++, true, &mi ) )
{
- pMyItem = (MYITEM*) mi.dwItemData;
+ MYITEM *pMyItem = (MYITEM*) mi.dwItemData;
if( pMyItem )
{
(pMyItem->text).clear();