Enforce consistency of encoding-related macros
Force wxNO_UNSAFE_WXSTRING_CONV on if wxNO_IMPLICIT_WXSTRING_ENCODING is on, as the latter is even stronger than the former.
This commit is contained in:
committed by
Vadim Zeitlin
parent
f44121378e
commit
57e136d9e1
@@ -81,6 +81,11 @@ class WXDLLIMPEXP_FWD_BASE wxString;
|
|||||||
#define WXWIN_COMPATIBILITY_STRING_PTR_AS_ITER 1
|
#define WXWIN_COMPATIBILITY_STRING_PTR_AS_ITER 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// enforce consistency among encoding-related macros
|
||||||
|
#if defined wxNO_IMPLICIT_WXSTRING_ENCODING && !defined wxNO_UNSAFE_WXSTRING_CONV
|
||||||
|
#define wxNO_UNSAFE_WXSTRING_CONV
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace wxPrivate
|
namespace wxPrivate
|
||||||
{
|
{
|
||||||
template <typename T> struct wxStringAsBufHelper;
|
template <typename T> struct wxStringAsBufHelper;
|
||||||
|
Reference in New Issue
Block a user