pass wxStrings directly to wxFAIL_MSG, there is no need to use c_str()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10268,10 +10268,7 @@ wxGridCellEditor * wxGrid::GetDefaultEditorForType(const wxString& typeName) con
|
|||||||
int index = m_typeRegistry->FindOrCloneDataType(typeName);
|
int index = m_typeRegistry->FindOrCloneDataType(typeName);
|
||||||
if ( index == wxNOT_FOUND )
|
if ( index == wxNOT_FOUND )
|
||||||
{
|
{
|
||||||
wxString errStr;
|
wxFAIL_MSG(wxString::Format(wxT("Unknown data type name [%s]"), typeName.c_str()));
|
||||||
|
|
||||||
errStr.Printf(wxT("Unknown data type name [%s]"), typeName.c_str());
|
|
||||||
wxFAIL_MSG(errStr.c_str());
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -10284,10 +10281,7 @@ wxGridCellRenderer * wxGrid::GetDefaultRendererForType(const wxString& typeName)
|
|||||||
int index = m_typeRegistry->FindOrCloneDataType(typeName);
|
int index = m_typeRegistry->FindOrCloneDataType(typeName);
|
||||||
if ( index == wxNOT_FOUND )
|
if ( index == wxNOT_FOUND )
|
||||||
{
|
{
|
||||||
wxString errStr;
|
wxFAIL_MSG(wxString::Format(wxT("Unknown data type name [%s]"), typeName.c_str()));
|
||||||
|
|
||||||
errStr.Printf(wxT("Unknown data type name [%s]"), typeName.c_str());
|
|
||||||
wxFAIL_MSG(errStr.c_str());
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@@ -1594,8 +1594,7 @@ bool wxToolBar::DoInsertTool(size_t WXUNUSED(pos), wxToolBarToolBase *toolBase)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxString errMsg = wxString::Format( wxT("wxToolBar::DoInsertTool - failure [%ld]"), (long)err );
|
wxFAIL_MSG( wxString::Format( wxT("wxToolBar::DoInsertTool - failure [%ld]"), (long)err ) );
|
||||||
wxFAIL_MSG( errMsg.c_str() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (err == noErr);
|
return (err == noErr);
|
||||||
|
Reference in New Issue
Block a user