mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Merge pull request #5389 from glassez/type_assert
Show type name in btjson.cpp@processMap assert
This commit is contained in:
@@ -775,7 +775,10 @@ void processMap(QVariantMap prevData, QVariantMap data, QVariantMap &syncData)
|
|||||||
syncData[key] = data[key];
|
syncData[key] = data[key];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Q_ASSERT(0);
|
Q_ASSERT_X(false, "processMap"
|
||||||
|
, QString("Unexpected type: %1")
|
||||||
|
.arg(QMetaType::typeName(static_cast<QMetaType::Type>(data[key].type())))
|
||||||
|
.toUtf8().constData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user