Fix macros in xti.cpp
Replaced `wxToStringConverter<type, data, result)` with
`wxFromStringConverter<type>(data, result)`, which was broken
for 7 years since the commit 13830d6
This fixes compilation with `--enable-extended_rtti` configure flag.
Also removed all trailing spaces in this file.
This commit is contained in:
@@ -270,9 +270,9 @@ template<> void wxStringWriteValue(wxString &s, const wxString &data )
|
||||
#else
|
||||
#define wxBUILTIN_TYPE_INFO( element, type ) \
|
||||
void _toString##element( const wxAny& data, wxString &result ) \
|
||||
{ wxToStringConverter<type, data, result); } \
|
||||
{ wxToStringConverter<type>(data, result); } \
|
||||
void _fromString##element( const wxString& data, wxAny &result ) \
|
||||
{ wxFromStringConverter<type, data, result); } \
|
||||
{ wxFromStringConverter<type>(data, result); } \
|
||||
wxBuiltInTypeInfo s_typeInfo##type(element, &_toString##element, \
|
||||
&_fromString##element, typeid(type).name());
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user