X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52cbcda3510115c9ce5e8a3cabbdb15ccbd0adb1..ade0e73d18274cac0a51095fe84f49bd60526b56:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 86602e25d3..6df6999ab1 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -706,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; }