diff --git a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp index aec8d1b241..290d4ac240 100644 --- a/tests/auto/corelib/io/qsettings/tst_qsettings.cpp +++ b/tests/auto/corelib/io/qsettings/tst_qsettings.cpp @@ -2467,7 +2467,7 @@ void tst_QSettings::testEscapes() QString s = QSettingsPrivate::variantToString(v); \ QCOMPARE(s, escStr); \ QCOMPARE(QVariant(QSettingsPrivate::stringToVariant(escStr)), v); \ - QVERIFY(val == v.func()); \ + QVERIFY((val) == v.func()); \ } #define testBadEscape(escStr, vStr) \