summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-03-05 03:16:31 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-03-05 09:57:46 +0000
commitd4b6ed3c18ecad9de1da182e6c1e3fc4eced2e49 (patch)
tree4787b1d08240fd46eb915e160e43a2edf977d119 /tests/auto/corelib/global/qglobal/tst_qglobal.cpp
parenteae6298202f7f258c18ff88949f07c82654b9f3d (diff)
tst_qglobal.cpp: fix compilation with an actual C++14 compiler
Change-Id: I66819f3708f0489006f997f43f1051b81f7b647e Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/corelib/global/qglobal/tst_qglobal.cpp')
-rw-r--r--tests/auto/corelib/global/qglobal/tst_qglobal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
index 152906287c..bb4d1f4bf2 100644
--- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
+++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
@@ -732,8 +732,8 @@ void tst_QGlobal::testqOverload()
QVERIFY(qOverload<QByteArray>(&freeOverloaded) ==
static_cast<void (*)(QByteArray)>(&freeOverloaded));
- QVERIFY((qOverload<QByteArray, const QString &>(&freeOverloaded)),
- static_cast<void (*)(QByteArray, const QString &)>(&freeOverloaded));
+ QVERIFY((qOverload<QByteArray, const QString &>(&freeOverloaded) ==
+ static_cast<void (*)(QByteArray, const QString &)>(&freeOverloaded)));
// value returning free overloaded functions
QVERIFY(qOverload<>(&freeOverloadedGet) ==