compare language to enum instead of integer in systemPrivate() function

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-08-08 12:14:00 +00:00
parent 3866d5dfbb
commit fdacf22672

View file

@ -174,7 +174,7 @@ static const QLocalePrivate *systemPrivate()
{
#ifndef QT_NO_SYSTEMLOCALE
// copy over the information from the fallback locale and modify
if (!system_lp || system_lp->m_language == 0)
if (!system_lp || system_lp->m_language == QLocale::AnyLanguage)
QLocalePrivate::updateSystemPrivate();
return system_lp;