]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xlocale.cpp
make wxRearrangeDialog more customizable and add an example of customizing it to...
[wxWidgets.git] / src / common / xlocale.cpp
index 14c7a5b35c92cd64280648b18c87742c2f0b6162..b04288c64869562cb034d51c12ea097fc7842c79 100644 (file)
@@ -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<wxXLocaleCTag *>(NULL));
     }
 
     return *gs_cLocale;
@@ -88,7 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang)
     }
     else
     {
-        Init(info->CanonicalName);
+        Init(info->GetLocaleName().c_str());
     }
 }