Add wxNO_UNSAFE_WXSTRING_CONV2 macro
The macro disallows implicit conversions between wxString and const char*
This commit is contained in:
committed by
Vadim Zeitlin
parent
15a4375f93
commit
65cbf40b7e
@@ -138,11 +138,15 @@ public:
|
||||
// Do not use, it's used by the ctor only.
|
||||
struct CtorString
|
||||
{
|
||||
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
CtorString(const char *str) : m_str(str) {}
|
||||
#endif
|
||||
CtorString(const wchar_t *str) : m_str(str) {}
|
||||
CtorString(const wxString& str) : m_str(str) {}
|
||||
CtorString(const wxCStrData& str) : m_str(str) {}
|
||||
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
|
||||
CtorString(const wxScopedCharBuffer& str) : m_str(str) {}
|
||||
#endif
|
||||
CtorString(const wxScopedWCharBuffer& str) : m_str(str) {}
|
||||
|
||||
operator const wxString*() const { return &m_str; }
|
||||
|
Reference in New Issue
Block a user