Fix XTI compilation in STL build.
Use explicit c_str() calls in XTI code as implicit conversion to "const char *" doesn't exist in STL build. This fixes compilation problems when wxUSE_EXTENDED_RTTI && wxUSE_STL. Closes #13087. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -931,14 +931,14 @@ void wxGenericPropertyAccessor::SetProperty(wxObject *object, const wxAny &value
|
||||
{
|
||||
wxDynamicObject* dynobj = wx_dynamic_cast(wxDynamicObject*, object);
|
||||
wxASSERT_MSG( dynobj, wxT("cannot call wxDynamicClassInfo::SetProperty on an object other than wxDynamicObject") );
|
||||
dynobj->SetProperty(m_propertyName, value );
|
||||
dynobj->SetProperty(m_propertyName.c_str(), value );
|
||||
}
|
||||
|
||||
void wxGenericPropertyAccessor::GetProperty(const wxObject *object, wxAny& value) const
|
||||
{
|
||||
const wxDynamicObject* dynobj = wx_dynamic_cast( const wxDynamicObject * , object );
|
||||
wxASSERT_MSG( dynobj, wxT("cannot call wxDynamicClassInfo::SetProperty on an object other than wxDynamicObject") );
|
||||
value = dynobj->GetProperty( m_propertyName );
|
||||
value = dynobj->GetProperty( m_propertyName.c_str() );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user