wxCHECK/wxCHECK_RET changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-06-22 22:17:39 +00:00
parent a539b39f6b
commit 1311c7a9bb
8 changed files with 23 additions and 19 deletions

View File

@@ -139,7 +139,7 @@ void wxMenu::Break(void)
// function appends a new item or submenu to the menu
void wxMenu::Append(wxMenuItem *pItem)
{
wxCHECK( pItem != NULL );
wxCHECK_RET( pItem != NULL, "can't append NULL item to the menu" );
m_menuItems.Append(pItem);
@@ -269,7 +269,7 @@ void wxMenu::Delete(int id)
void wxMenu::Enable(int Id, bool Flag)
{
wxMenuItem *item = FindItemForId(Id);
wxCHECK( item != NULL );
wxCHECK_RET( item != NULL, "can't enable non-existing menu item" );
item->Enable(Flag);
}
@@ -277,7 +277,7 @@ void wxMenu::Enable(int Id, bool Flag)
bool wxMenu::Enabled(int Id) const
{
wxMenuItem *item = FindItemForId(Id);
wxCHECK_RET( item != NULL, FALSE );
wxCHECK( item != NULL, FALSE );
return item->IsEnabled();
}
@@ -285,7 +285,7 @@ bool wxMenu::Enabled(int Id) const
void wxMenu::Check(int Id, bool Flag)
{
wxMenuItem *item = FindItemForId(Id);
wxCHECK( item != NULL );
wxCHECK_RET( item != NULL, "can't get status of non-existing menu item" );
item->Check(Flag);
}
@@ -293,7 +293,7 @@ void wxMenu::Check(int Id, bool Flag)
bool wxMenu::Checked(int Id) const
{
wxMenuItem *item = FindItemForId(Id);
wxCHECK_RET( item != NULL, FALSE );
wxCHECK( item != NULL, FALSE );
return item->IsChecked();
}