diff --git a/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp b/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp index 72096ceee5..ac07a0212a 100644 --- a/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp +++ b/tests/auto/network/access/qnetworkcookiejar/tst_qnetworkcookiejar.cpp @@ -14,6 +14,8 @@ #include "private/qtldurl_p.h" #endif +#include + class tst_QNetworkCookieJar: public QObject { Q_OBJECT @@ -249,7 +251,7 @@ void tst_QNetworkCookieJar::setCookiesFromUrl() QVERIFY2(result.contains(cookie), cookie.toRawForm()); result.removeAll(cookie); } - QVERIFY2(result.isEmpty(), QTest::toString(result)); + QVERIFY2(result.isEmpty(), std::unique_ptr(QTest::toString(result)).get()); } void tst_QNetworkCookieJar::cookiesForUrl_data()