diff options
author | David Skoland <david.skoland@qt.io> | 2020-10-26 09:18:14 +0100 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2020-10-26 09:50:11 +0100 |
commit | dc44e4a35eaeab3eb6e75b9c33960bc1b7a136a5 (patch) | |
tree | 039108931f2740524a06ce6bf02452bc29b04211 | |
parent | e3470a98e98c8a789a4cb298a0afaacf0cc62ce9 (diff) |
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>
-rw-r--r-- | src/corelib/text/qlocale_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale_mac.mm b/src/corelib/text/qlocale_mac.mm index e3593c3aff..e1bb66a221 100644 --- a/src/corelib/text/qlocale_mac.mm +++ b/src/corelib/text/qlocale_mac.mm @@ -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(); |