Skip to content

Commit

Permalink
Use metaType instead of type in qlocale_mac
Browse files Browse the repository at this point in the history
QVariant's type() has been deprecated in favor of metaType()

Change-Id: Ibb060bde5e946849fc1c1a67a48ff63beb1d8ffe
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
David Skoland committed Oct 26, 2020
1 parent e3470a9 commit dc44e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/text/qlocale_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dc44e4a

Please sign in to comment.