diff --git a/tests/auto/tools/qdbuscpp2xml/tst_qdbuscpp2xml.cpp b/tests/auto/tools/qdbuscpp2xml/tst_qdbuscpp2xml.cpp index 19c85a050e..1f6dd5748d 100644 --- a/tests/auto/tools/qdbuscpp2xml/tst_qdbuscpp2xml.cpp +++ b/tests/auto/tools/qdbuscpp2xml/tst_qdbuscpp2xml.cpp @@ -78,7 +78,7 @@ void tst_qdbuscpp2xml::qdbuscpp2xml_data() QTest::addColumn("inputfile"); QTest::addColumn("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);