X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42fc0309be7252439d2e1bf40722a042c4e81213..5a83f42b3a0378cbb71d87c200bbd9295b0aaa82:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 0462f4f2e8..ac8c35b8bf 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -3010,7 +3010,7 @@ inline wxCStrData::wxCStrData(const wxCStrData& data) inline wxCStrData::~wxCStrData() { if ( m_owned ) - delete m_str; + delete wx_const_cast(wxString*, m_str); // cast to silence warnings } // simple cases for AsChar() and AsWChar(), the complicated ones are