]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xlocale.cpp
avoid an unnecessary and unused (resulting in release build warning) variable in...
[wxWidgets.git] / src / common / xlocale.cpp
index e72fd843a058b91396770b96254a16caf0fc1042..6adb86b8d996cb5a4baf1e5bbd8c451c81d3cf51 100644 (file)
@@ -88,11 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang)
     }
     else
     {
     }
     else
     {
-#ifdef __WXMSW__
-        Init(info->Description);
-#else
-        Init(info->CanonicalName);
-#endif
+        Init(info->GetLocaleName().c_str());
     }
 }
 
     }
 }