Commit f708b443 authored by David Faure's avatar David Faure

fix compilation with gcc 4.8

parent c95f769a
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment