wxString(const unsigned char *) ctor doesn't crash by default with wxUSE_STL==1 any more

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-11-08 01:10:02 +00:00
parent 2ee96a251c
commit 153958f72d

View File

@ -671,7 +671,10 @@ public:
wxString(const wxWCharBuffer& psz) : wxStringBase(psz.data()) { }
#else // ANSI
// from C string (for compilers using unsigned char)
wxString(const unsigned char* psz, size_t nLength = npos)
wxString(const unsigned char* psz)
: wxStringBase((const char*)psz) { }
// from part of C string (for compilers using unsigned char)
wxString(const unsigned char* psz, size_t nLength)
: wxStringBase((const char*)psz, nLength) { }
#if wxUSE_WCHAR_T