Apply implicit encoding check to wxDataFormat ctor in wxMSW too
This is similar to what had been already done in wxGTK.
This commit is contained in:
parent
a2609429a3
commit
f44121378e
@ -27,7 +27,9 @@ public:
|
||||
// wxString don't apply when we already rely on implicit conversion of a,
|
||||
// for example, "char *" string to wxDataFormat, and existing code does it
|
||||
wxDataFormat(const wxString& format) { SetId(format); }
|
||||
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
wxDataFormat(const char *format) { SetId(format); }
|
||||
#endif // wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
wxDataFormat(const wchar_t *format) { SetId(format); }
|
||||
wxDataFormat(const wxCStrData& format) { SetId(format); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user