X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52cbcda3510115c9ce5e8a3cabbdb15ccbd0adb1..107d0fd493dc4d750ba18518a2eea5b93d988965:/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; }