summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhttpnetworkconnection.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-08-27 14:34:30 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-08-27 14:36:06 (GMT)
commit2c6cfddf3e1f3674f0b70880c12f6812650cd08d (patch)
tree024d4e7f98bcd6763c708deda5bceb3c6fef5945 /src/network/access/qhttpnetworkconnection.cpp
parentdd9499f786432687aada7c41d2073869d56f0b59 (diff)
downloadQt-2c6cfddf3e1f3674f0b70880c12f6812650cd08d.zip
Qt-2c6cfddf3e1f3674f0b70880c12f6812650cd08d.tar.gz
Qt-2c6cfddf3e1f3674f0b70880c12f6812650cd08d.tar.bz2
QNAM HTTP Code: Optimize connectionCloseEnabled
Was called pretty often, therefore we now calculate this once and save it in a bool. Reviewed-by: TrustMe
Diffstat (limited to 'src/network/access/qhttpnetworkconnection.cpp')
-rw-r--r--src/network/access/qhttpnetworkconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp
index b51c0bb..b111bec 100644
--- a/src/network/access/qhttpnetworkconnection.cpp
+++ b/src/network/access/qhttpnetworkconnection.cpp
@@ -603,7 +603,7 @@ void QHttpNetworkConnectionPrivate::removeReply(QHttpNetworkReply *reply)
for (int i = 0; i < channelCount; ++i) {
if (channels[i].reply == reply) {
channels[i].reply = 0;
- if (reply->d_func()->connectionCloseEnabled())
+ if (reply->d_func()->isConnectionCloseEnabled())
channels[i].close();
QMetaObject::invokeMethod(q, "_q_startNextRequest", Qt::QueuedConnection);
return;