Kaydet (Commit) b3d281f5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-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
üst ae4fdbaa
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment