mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
Fix wxPG macros when wxNO_IMPLICIT_WXSTRING_ENCODING is defined
Use wide-char literal string instead of an ASCII one to fix compilation. Closes #26651.
This commit is contained in:
@@ -524,7 +524,7 @@ expdecl const classname& classname##RefFromVariant( const wxVariant& variant ) \
|
||||
#define WX_PG_IMPLEMENT_VARIANT_DATA_GETTER(classname, expdecl) \
|
||||
expdecl classname& operator << ( classname &value, const wxVariant &variant )\
|
||||
{\
|
||||
wxASSERT( variant.GetType() == #classname );\
|
||||
wxASSERT( variant.GetType() == wxS(#classname) );\
|
||||
\
|
||||
classname##VariantData *data = (classname##VariantData*) variant.GetData();\
|
||||
value = data->GetValue();\
|
||||
|
||||
Reference in New Issue
Block a user