diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 10:14:32 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:32 +0100 |
commit | e8d7c38231c048bfcf24d8a39f0ed598dabcf071 (patch) | |
tree | 74ceccff3ba973eeaf41d61cd389f37a35f30358 /vcl | |
parent | 277e9c4ca81ec2315214126c0ac6949e20c5443e (diff) |
WaE: comparison between signed and unsigned integer expressions
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/window/salmenu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/source/window/salmenu.cxx b/vcl/win/source/window/salmenu.cxx index e3f4345e5282..b215a0606b5a 100644 --- a/vcl/win/source/window/salmenu.cxx +++ b/vcl/win/source/window/salmenu.cxx @@ -202,7 +202,7 @@ void WinSalMenu::InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos ) if( nPos == MENU_APPEND ) { nPos = ::GetMenuItemCount( mhMenu ); - if( nPos == -1 ) + if( nPos == static_cast<unsigned>( -1 ) ) return; } @@ -299,7 +299,7 @@ void WinSalMenu::SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsig void WinSalMenu::CheckItem( unsigned nPos, sal_Bool bCheck ) { - if( -1 != ::CheckMenuItem( mhMenu, nPos, MF_BYPOSITION|(bCheck ? MF_CHECKED : MF_UNCHECKED) ) ) + if( static_cast<unsigned>( -1 ) != ::CheckMenuItem( mhMenu, nPos, MF_BYPOSITION|(bCheck ? MF_CHECKED : MF_UNCHECKED) ) ) ImplDrawMenuBar( this ); } |