Network: Use the new invokeMethod overload
Saves us from having to create a lambda functor object. Change-Id: I5e790e693b57ae414ac6d6be84f18b76b3e8185c Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
45a3fa0101
commit
14510bac9a
@ -60,7 +60,7 @@ QNetworkReplyFileImpl::QNetworkReplyFileImpl(QNetworkAccessManager *manager, con
|
|||||||
setFinished(true); // We're finished, will emit finished() after ctor is done.
|
setFinished(true); // We're finished, will emit finished() after ctor is done.
|
||||||
QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
|
QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
|
||||||
Q_ARG(QNetworkReply::NetworkError, QNetworkReply::ProtocolInvalidOperationError));
|
Q_ARG(QNetworkReply::NetworkError, QNetworkReply::ProtocolInvalidOperationError));
|
||||||
QMetaObject::invokeMethod(this, [this](){ fileOpenFinished(false); }, Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, &QNetworkReplyFileImpl::fileOpenFinished, Qt::QueuedConnection, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user