Commit d2e15726 authored by Volker Krause's avatar Volker Krause
Browse files

Fix variant comparison with Qt6

QVariant <-> const char* doesn't work there anymore, so make this more
explicit.
parent 2c11ff23
Pipeline #199582 passed with stage
in 3 minutes and 54 seconds
......@@ -18,16 +18,16 @@ namespace Bugzilla
static void compareNewBugHash(const QVariantHash &hash, bool *ok)
{
*ok = false;
QCOMPARE(hash["product"], "aproduct");
QCOMPARE(hash["component"], "acomp");
QCOMPARE(hash["summary"], "asummary");
QCOMPARE(hash["version"], "aversion");
QCOMPARE(hash["description"], "adescription");
QCOMPARE(hash["op_sys"], "asys");
QCOMPARE(hash["platform"], "aplatform");
QCOMPARE(hash["priority"], "apriority");
QCOMPARE(hash["severity"], "aseverity");
QCOMPARE(hash["keywords"], QStringList({"aword", "anotherword"}));
QCOMPARE(hash["product"].toString(), QLatin1String("aproduct"));
QCOMPARE(hash["component"].toString(), QLatin1String("acomp"));
QCOMPARE(hash["summary"].toString(), QLatin1String("asummary"));
QCOMPARE(hash["version"].toString(), QLatin1String("aversion"));
QCOMPARE(hash["description"].toString(), QLatin1String("adescription"));
QCOMPARE(hash["op_sys"].toString(), QLatin1String("asys"));
QCOMPARE(hash["platform"].toString(), QLatin1String("aplatform"));
QCOMPARE(hash["priority"].toString(), QLatin1String("apriority"));
QCOMPARE(hash["severity"].toString(), QLatin1String("aseverity"));
QCOMPARE(hash["keywords"].toStringList(), QStringList({"aword", "anotherword"}));
*ok = true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment