fix compilation with gcc 4.8

This commit is contained in:
David Faure 2016-12-14 23:36:59 +01:00
parent 5279a64e05
commit e59fd940d6

View file

@ -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();