compilation fix for wxUSE_XLOCALE == 0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-02-10 17:10:15 +00:00
parent 149e70e123
commit 45f5fbd438

View File

@ -77,6 +77,8 @@ wxXLocale& wxXLocale::GetCLocale()
return *gs_cLocale; return *gs_cLocale;
} }
#ifdef wxHAS_XLOCALE_SUPPORT
wxXLocale::wxXLocale(wxLanguage lang) wxXLocale::wxXLocale(wxLanguage lang)
{ {
const wxLanguageInfo * const info = wxLocale::GetLanguageInfo(lang); const wxLanguageInfo * const info = wxLocale::GetLanguageInfo(lang);
@ -90,8 +92,6 @@ wxXLocale::wxXLocale(wxLanguage lang)
} }
} }
#ifdef wxHAS_XLOCALE_SUPPORT
#if wxCHECK_VISUALC_VERSION(8) #if wxCHECK_VISUALC_VERSION(8)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@ -203,7 +203,7 @@ wxUniChar wxTolower_l(const wxUniChar& c, const wxXLocale& loc)
{ {
wxCHECK(loc.IsOk(), false); wxCHECK(loc.IsOk(), false);
if(CTYPE_TEST(c, CTYPE_UPPER)) if(CTYPE_TEST(c.GetValue(), CTYPE_UPPER))
{ {
return c - 'A' + 'a'; return c - 'A' + 'a';
} }
@ -215,7 +215,7 @@ wxUniChar wxToupper_l(const wxUniChar& c, const wxXLocale& loc)
{ {
wxCHECK(loc.IsOk(), false); wxCHECK(loc.IsOk(), false);
if(CTYPE_TEST(c, CTYPE_LOWER)) if(CTYPE_TEST(c.GetValue(), CTYPE_LOWER))
{ {
return c - 'a' + 'A'; return c - 'a' + 'A';
} }