Fix compatibility with < Qt 6.1.

This commit is contained in:
Roman Telezhynskyi 2023-06-29 18:16:04 +03:00
parent d5f5e0cb3f
commit e6533cb697

View File

@ -298,7 +298,7 @@ auto VGAnalytics::TerritoryCode() -> QString
#if QT_VERSION < QT_VERSION_CHECK(6, 1, 0) #if QT_VERSION < QT_VERSION_CHECK(6, 1, 0)
auto VGAnalytics::GetTerritoryCode(QLocale::Country territory) -> QString auto VGAnalytics::GetTerritoryCode(QLocale::Country territory) -> QString
{ {
if (territory == QLocale::AnyTerritory || territory > QLocale::LastTerritory) if (territory == QLocale::AnyCountry || territory > QLocale::LastCountry)
{ {
return {}; return {};
} }