]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for wxUSE_STL==1 build after r67356.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 Mar 2011 10:08:41 +0000 (10:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 Mar 2011 10:08:41 +0000 (10:08 +0000)
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

src/common/colourcmn.cpp

index 965fbdcff07422f07f22ad001503807b331db824..7bbb17260f065920d929cc56318dc9769106b15e 100644 (file)
@@ -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;