diff --git a/tests/PythonQtTests.cpp b/tests/PythonQtTests.cpp index e35d8c6..7585be7 100644 --- a/tests/PythonQtTests.cpp +++ b/tests/PythonQtTests.cpp @@ -255,9 +255,8 @@ void PythonQtTestApi::testVariables() QSet s; // check that at least these three variables are set s << "obj" << "someObject" << "someValue"; - QString a; - foreach (a, l) { - QVERIFY(s.contains(a)); + foreach (QString value, s) { + QVERIFY(l.indexOf(value)!=-1); } // insert a second time!