Replace references to wxLocale by wxUILocale

Use newer wxUILocale class directly instead of using wxLocale functions
that forward to it anyhow.

No real changes.

Closes #22375.
This commit is contained in:
utelle
2022-04-29 09:19:58 +02:00
committed by Vadim Zeitlin
parent a7791781d9
commit 1c65e88221
10 changed files with 37 additions and 35 deletions

View File

@@ -39,6 +39,7 @@
#include "wx/thread.h"
#include "wx/vidmode.h"
#include "wx/evtloop.h"
#include "wx/uilocale.h"
#if wxUSE_FONTMAP
#include "wx/fontmap.h"
@@ -206,19 +207,11 @@ wxVideoMode wxAppBase::GetDisplayMode() const
wxLayoutDirection wxAppBase::GetLayoutDirection() const
{
#if wxUSE_INTL
const wxLocale *const locale = wxGetLocale();
if ( locale )
{
const wxLanguageInfo *const
info = wxLocale::GetLanguageInfo(locale->GetLanguage());
if ( info )
return info->LayoutDirection;
}
#endif // wxUSE_INTL
return wxUILocale::GetCurrent().GetLayoutDirection();
#else
// we don't know
return wxLayout_Default;
#endif // wxUSE_INTL
}
#if wxUSE_CMDLINE_PARSER