From: Vadim Zeitlin Date: Thu, 31 Mar 2011 10:08:41 +0000 (+0000) Subject: Compilation fix for wxUSE_STL==1 build after r67356. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3130a8d0147094b618e6cfe4b3f62dacdbbea340 Compilation fix for wxUSE_STL==1 build after r67356. An explicit conversion to char* is required in wxUSE_STL build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/colourcmn.cpp b/src/common/colourcmn.cpp index 965fbdcff0..7bbb17260f 100644 --- a/src/common/colourcmn.cpp +++ b/src/common/colourcmn.cpp @@ -128,7 +128,7 @@ bool wxColourBase::FromString(const wxString& str) // passed as first argument: if it is a wide string, then %c // expects "wchar_t *" matching parameter under MSW for example. if ( sscanf(str.c_str() + 4, - formatStr, + formatStr.mb_str(), &red, &green, &blue, alphaPtr) != 4 ) return false;