X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/254a21292b0ccf234ed1dbc6acd37708672ffcc0..107d0fd493dc4d750ba18518a2eea5b93d988965:/src/common/variant.cpp?ds=sidebyside diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 6004fee34e..6df6999ab1 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -29,6 +29,7 @@ #endif #if defined(__MWERKS__) && __MSL__ >= 0x6000 +namespace std {} using namespace std ; #endif @@ -705,7 +706,7 @@ bool wxVariantDataChar::Read(wxInputStream& str) bool wxVariantDataChar::Read(wxString& str) { - m_value = str[(size_t)0]; + m_value = str.ToAscii()[0u]; return true; }