X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/067fd8b47ea5e063723eb55820cd2c320fe9f60b..fa3d4aaf0fdffa51372d15f17862cb7081687107:/src/common/xlocale.cpp diff --git a/src/common/xlocale.cpp b/src/common/xlocale.cpp index 24d1a3f443..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,14 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang) } else { - wxString loc; -#ifdef __WXMSW__ - loc = info->Description; -#else - loc = info->CanonicalName; -#endif - - Init(loc.c_str()); + Init(info->GetLocaleName().c_str()); } }