From e59fd940d6b7c32eed7987bf7a85b95546229259 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 14 Dec 2016 23:36:59 +0100 Subject: [PATCH] fix compilation with gcc 4.8 --- tests/downloadjobtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/downloadjobtest.cpp b/tests/downloadjobtest.cpp index 55576fce3..30692271c 100644 --- a/tests/downloadjobtest.cpp +++ b/tests/downloadjobtest.cpp @@ -59,7 +59,7 @@ void DownloadJobTest::failToConnectShouldDestroyTheJob() // no initServer test = new DownloadJob(QHostAddress::LocalHost, {{"port", 8694}}); - QSignalSpy spy(test, &KJob::finished); + QSignalSpy spy(test.data(), &KJob::finished); test->start(); QVERIFY(spy.count() || spy.wait()); @@ -71,7 +71,7 @@ void DownloadJobTest::closingTheConnectionShouldDestroyTheJob() { initServer(); test = new DownloadJob(QHostAddress::LocalHost, {{"port", 8694}}); - QSignalSpy spy(test, &KJob::finished); + QSignalSpy spy(test.data(), &KJob::finished); test->start(); mServer->close();