From b3d281f5c2c69cbbe8f90115e76ebbe5263d0ec7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 11 Aug 2014 16:21:40 +0200 Subject: -Werror,-Wtautological-undefined-compare ("'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to true") Change-Id: Id3b886135f43b39a2fcf2bb197cf6a80d6532365 --- sfx2/source/menu/virtmenu.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx index 434198de89f9..59f0fbebc763 100644 --- a/sfx2/source/menu/virtmenu.cxx +++ b/sfx2/source/menu/virtmenu.cxx @@ -990,7 +990,6 @@ IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu ) void SfxVirtualMenu::CheckItem( sal_uInt16 nItemId, bool bCheck ) { - DBG_ASSERT( this != 0, ""); DBG_ASSERT( pSVMenu != 0, "" ); if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) pSVMenu->CheckItem( nItemId, bCheck ); @@ -1001,7 +1000,6 @@ void SfxVirtualMenu::CheckItem( sal_uInt16 nItemId, bool bCheck ) void SfxVirtualMenu::EnableItem( sal_uInt16 nItemId, bool bEnable ) { - DBG_ASSERT( this != 0, ""); DBG_ASSERT( pSVMenu != 0, "" ); if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) @@ -1013,7 +1011,6 @@ void SfxVirtualMenu::EnableItem( sal_uInt16 nItemId, bool bEnable ) void SfxVirtualMenu::SetItemText( sal_uInt16 nItemId, const OUString& rText ) { - DBG_ASSERT( this != 0, ""); DBG_ASSERT( pSVMenu != 0, "" ); if (pSVMenu->GetItemPos( nItemId ) != MENU_ITEM_NOTFOUND ) pSVMenu->SetItemText( nItemId, rText ); -- cgit