Don't use Q_GLOBAL_STATIC for trivial type QLocaleData
Change-Id: I9435295a753d7dabea202fde876786d876a295fa Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
24642df23c
commit
5b75a16e8f
@ -80,7 +80,7 @@ public:
|
||||
|
||||
Q_GLOBAL_STATIC(QSystemLocaleSingleton, QSystemLocale_globalSystemLocale)
|
||||
static QLocaleData *system_data = 0;
|
||||
Q_GLOBAL_STATIC(QLocaleData, globalLocaleData)
|
||||
static QLocaleData globalLocaleData;
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
@ -595,7 +595,7 @@ void QLocalePrivate::updateSystemPrivate()
|
||||
{
|
||||
const QSystemLocale *sys_locale = systemLocale();
|
||||
if (!system_data)
|
||||
system_data = globalLocaleData();
|
||||
system_data = &globalLocaleData;
|
||||
|
||||
// tell the object that the system locale has changed.
|
||||
sys_locale->query(QSystemLocale::LocaleChanged, QVariant());
|
||||
|
Loading…
Reference in New Issue
Block a user