]> git.sesse.net Git - vlc/commitdiff
Safer macros locale conversion macros for WxWidgets.
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 12 Nov 2006 12:49:13 +0000 (12:49 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 12 Nov 2006 12:49:13 +0000 (12:49 +0000)
modules/gui/wxwidgets/wxwidgets.hpp

index 6a1039097ff4f7d07468a8fd1a07ae09340c978e..c6f518e2984975b77206a63c443862605daf7bf5 100644 (file)
@@ -99,10 +99,10 @@ DECLARE_LOCAL_EVENT_TYPE( wxEVT_INTF, 1 );
  * through wxString::wc_str(); they are lost when using mb_str().
  */
 #if defined( wxUSE_UNICODE ) && defined( WIN32 )
-#   define wxFromLocale(wxstring) FromWide(wxstring.wc_str())
+#   define wxFromLocale(wxstring) FromWide((wxstring).wc_str())
 #   define wxLocaleFree(string) free(string)
 #else
-#   define wxFromLocale(wxstring) FromLocale(wxstring.mb_str())
+#   define wxFromLocale(wxstring) FromLocale((wxstring).mb_str())
 #   define wxLocaleFree(string) LocaleFree(string)
 #endif