]> git.saurik.com Git - wxWidgets.git/commitdiff
and now it even compiles
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Sep 2005 13:47:04 +0000 (13:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Sep 2005 13:47:04 +0000 (13:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index e88ccba1842da4afa4e7e44caf49ab2fafda2a71..3154d94232d6ce4a093da14f24f84c8d5355b2bb 100644 (file)
@@ -1365,7 +1365,7 @@ wxMBConv_iconv::wxMBConv_iconv(const wxChar *name)
 {
     // iconv operates with chars, not wxChars, but luckily it uses only ASCII
     // names for the charsets
-    const wxCharBuffer cname(wxString::ToAscii(name));
+    const wxCharBuffer cname(wxString(name).ToAscii());
 
     // check for charset that represents wchar_t:
     if (ms_wcCharsetName == NULL)