tst_qdbuscpp2xml: stop doing math on enumerations

Cast it to int to do math.

Change-Id: Ia553cccb7e160df50e77fba63d66d0ed45c246c2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2020-09-05 13:28:34 +02:00
parent 2ee5449aca
commit 2ab91dd68e

View File

@ -78,7 +78,7 @@ void tst_qdbuscpp2xml::qdbuscpp2xml_data()
QTest::addColumn<QString>("inputfile");
QTest::addColumn<int>("flags");
QBitArray doneFlags(QDBusConnection::ExportAllContents + 1);
QBitArray doneFlags(int(QDBusConnection::ExportAllContents) + 1);
for (int flag = 0x10; flag < QDBusConnection::ExportScriptableContents; flag += 0x10) {
QTest::newRow("xmlgenerator-" + QByteArray::number(flag)) << "test1" << flag;
doneFlags.setBit(flag);