X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9727b1be58d5cc9be85d12f8d47f3544f881b97..9a6aafe0039fef580ca1bfcf0e87c1ba8e2953ba:/src/common/xlocale.cpp?ds=sidebyside diff --git a/src/common/xlocale.cpp b/src/common/xlocale.cpp index e72fd843a0..b04288c648 100644 --- a/src/common/xlocale.cpp +++ b/src/common/xlocale.cpp @@ -71,7 +71,7 @@ wxXLocale& wxXLocale::GetCLocale() { if ( !gs_cLocale ) { - gs_cLocale = new wxXLocale(wx_static_cast(wxXLocaleCTag *, NULL)); + gs_cLocale = new wxXLocale(static_cast(NULL)); } return *gs_cLocale; @@ -88,11 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang) } else { -#ifdef __WXMSW__ - Init(info->Description); -#else - Init(info->CanonicalName); -#endif + Init(info->GetLocaleName().c_str()); } }