]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxConvertMB2WX to fix compilation error in Unicode build
authorOve Kaaven <ovek@arcticnet.no>
Thu, 28 Oct 1999 10:31:16 +0000 (10:31 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Thu, 28 Oct 1999 10:31:16 +0000 (10:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 6ad12197a5c91d2875d17d4bb6e99569d5baa5f4..42e9ff74d4cfec7f5fbeaba0f38adb8defb68f26 100644 (file)
@@ -586,12 +586,8 @@ const wxMB2WXbuf wxLocale::GetString(const wxChar *szOrigString,
   }
   else
   {
-    // FIXME it was
-    // return (wxMB2WXbuf)(wxConvCurrent->cMB2WX(pszTrans));
-    //       before, but we don't want to use wxConvCurrent explicitly to
-    //       avoid linking unnecessary code in ANSI programs without MB
-    //       support
-    return (wxMB2WXbuf)(pszTrans);
+    return wxConvertMB2WX(pszTrans); // or preferably wxCSConv(charset).cMB2WX(pszTrans) or something,
+                                     // a macro similar to wxConvertMB2WX could be written for that
   }
 
   #undef szOrgString