wxASSERT(false) --> wxFAIL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-05-03 04:12:48 +00:00
parent c2f5b920ca
commit 4362c7052b
6 changed files with 9 additions and 9 deletions

View File

@@ -907,7 +907,7 @@ bool wxToolBar::Realize()
if (err != noErr)
{
wxString errMsg = wxString::Format( wxT("HIToolbarRemoveItemAtIndex failed [%ld]"), (long)err );
wxASSERT_MSG( 0, errMsg.c_str() );
wxFAIL_MSG( errMsg.c_str() );
}
}
@@ -915,7 +915,7 @@ bool wxToolBar::Realize()
if (err != noErr)
{
wxString errMsg = wxString::Format( wxT("HIToolbarInsertItemAtIndex failed [%ld]"), (long)err );
wxASSERT_MSG( 0, errMsg.c_str() );
wxFAIL_MSG( errMsg.c_str() );
}
tool->SetIndex( currentPosition );
@@ -1265,7 +1265,7 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
else
{
wxString errMsg = wxString::Format( wxT("wxToolBar::DoInsertTool - failure [%ld]"), (long)err );
wxASSERT_MSG( false, errMsg.c_str() );
wxFAIL_MSG( errMsg.c_str() );
}
return (err == noErr);