NOISSUE make a call to ensureBoolean in the JSON format code less ambiguous
This commit is contained in:
parent
d864c95e2b
commit
dddc5cedf3
@ -52,7 +52,7 @@ static VersionPtr parseCommonVersion(const QString &uid, const QJsonObject &obj)
|
|||||||
version->setTime(QDateTime::fromString(requireString(obj, "releaseTime"), Qt::ISODate).toMSecsSinceEpoch() / 1000);
|
version->setTime(QDateTime::fromString(requireString(obj, "releaseTime"), Qt::ISODate).toMSecsSinceEpoch() / 1000);
|
||||||
version->setType(ensureString(obj, "type", QString()));
|
version->setType(ensureString(obj, "type", QString()));
|
||||||
version->setParentUid(ensureString(obj, "parentUid", QString()));
|
version->setParentUid(ensureString(obj, "parentUid", QString()));
|
||||||
version->setRecommended(ensureBoolean(obj, "recommended", false));
|
version->setRecommended(ensureBoolean(obj, QString("recommended"), false));
|
||||||
if(obj.contains("requires"))
|
if(obj.contains("requires"))
|
||||||
{
|
{
|
||||||
QHash<QString, QString> requires;
|
QHash<QString, QString> requires;
|
||||||
|
Loading…
Reference in New Issue
Block a user