]> git.saurik.com Git - wxWidgets.git/commitdiff
Add missing c_str() call to fix wxGTK ANSI+STL build.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Sep 2013 18:02:25 +0000 (18:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Sep 2013 18:02:25 +0000 (18:02 +0000)
Closes #15518.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/utilsgtk.cpp

index ff35fcf9ae417f822cc21609efd4439fe9fe441f..384344934f6b1fc329484432ac897a0fe0f63fde 100644 (file)
@@ -116,7 +116,7 @@ wxConvertToGTK(const wxString& s, wxFontEncoding enc)
     wxWCharBuffer wbuf;
     if ( enc == wxFONTENCODING_SYSTEM || enc == wxFONTENCODING_DEFAULT )
     {
-        wbuf = wxConvUI->cMB2WC(s);
+        wbuf = wxConvUI->cMB2WC(s.c_str());
     }
     else // another encoding, use generic conversion class
     {