Remove #ifndef QT_NO_HTTP that does nothing
Change-Id: I9d6771e9da64e59f8a038dd3b506e6293fcb62c0 Reviewed-by: Jan Kundrát <jkt@kde.org> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Richard J. Moore <rich@kde.org>bb10
parent
adc3ef97d7
commit
afaf8a1650
|
|
@ -402,19 +402,11 @@ void QNetworkReplyImplPrivate::setup(QNetworkAccessManager::Operation op, const
|
|||
} else {
|
||||
// for HTTP, we want to send out the request as fast as possible to the network, without
|
||||
// invoking methods in a QueuedConnection
|
||||
#ifndef QT_NO_HTTP
|
||||
if (backend && backend->isSynchronous()) {
|
||||
_q_startOperation();
|
||||
} else {
|
||||
QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection);
|
||||
}
|
||||
#else
|
||||
if (backend && backend->isSynchronous())
|
||||
_q_startOperation();
|
||||
else
|
||||
QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection);
|
||||
#endif // QT_NO_HTTP
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void QNetworkReplyImplPrivate::backendNotify(InternalNotifications notification)
|
||||
|
|
@ -1113,11 +1105,7 @@ bool QNetworkReplyImplPrivate::migrateBackend()
|
|||
backend->setResumeOffset(bytesDownloaded);
|
||||
}
|
||||
|
||||
#ifndef QT_NO_HTTP
|
||||
QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection);
|
||||
#else
|
||||
QMetaObject::invokeMethod(q, "_q_startOperation", Qt::QueuedConnection);
|
||||
#endif // QT_NO_HTTP
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue