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:
@@ -20,6 +20,7 @@
|
||||
|
||||
|
||||
#include "wx/datetimectrl.h"
|
||||
#include "wx/uilocale.h"
|
||||
|
||||
#ifdef wxNEEDS_DATETIMEPICKCTRL
|
||||
|
||||
@@ -231,7 +232,7 @@ wxSize wxDateTimePickerCtrl::DoGetBestSize() const
|
||||
{
|
||||
// Use the same native format as the underlying native control.
|
||||
#if wxUSE_INTL
|
||||
wxString s = wxDateTime::Now().Format(wxLocale::GetOSInfo(MSWGetFormat()));
|
||||
wxString s = wxDateTime::Now().Format(wxUILocale::GetCurrent().GetInfo(MSWGetFormat()));
|
||||
#else // !wxUSE_INTL
|
||||
wxString s("XXX-YYY-ZZZZ");
|
||||
#endif // wxUSE_INTL/!wxUSE_INTL
|
||||
|
||||
Reference in New Issue
Block a user