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:
parent
e3470a98e9
commit
dc44e4a35e
@ -365,7 +365,7 @@ static QString macZeroDigit()
|
|||||||
static QString macFormatCurrency(const QSystemLocale::CurrencyToStringArgument &arg)
|
static QString macFormatCurrency(const QSystemLocale::CurrencyToStringArgument &arg)
|
||||||
{
|
{
|
||||||
QCFType<CFNumberRef> value;
|
QCFType<CFNumberRef> value;
|
||||||
switch (arg.value.type()) {
|
switch (arg.value.metaType().id()) {
|
||||||
case QMetaType::Int:
|
case QMetaType::Int:
|
||||||
case QMetaType::UInt: {
|
case QMetaType::UInt: {
|
||||||
int v = arg.value.toInt();
|
int v = arg.value.toInt();
|
||||||
|
Loading…
Reference in New Issue
Block a user