Use metaType instead of type in qlocale_mac

QVariant's type() has been deprecated in favor of metaType()

Change-Id: Ibb060bde5e946849fc1c1a67a48ff63beb1d8ffe
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
David Skoland 2020-10-26 09:18:14 +01:00
parent e3470a98e9
commit dc44e4a35e

View File

@ -365,7 +365,7 @@ static QString macZeroDigit()
static QString macFormatCurrency(const QSystemLocale::CurrencyToStringArgument &arg)
{
QCFType<CFNumberRef> value;
switch (arg.value.type()) {
switch (arg.value.metaType().id()) {
case QMetaType::Int:
case QMetaType::UInt: {
int v = arg.value.toInt();