summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-04-23 13:58:37 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-04-26 15:16:20 (GMT)
commitb7fa0c137c2ef567b286d83435aba843e33280b7 (patch)
treef315ee198e4f62861bc10d58cf5dc9f1b66c5869 /src/network
parent445aa2f6526d871086ab61fb1ca24658f5a0ca8c (diff)
downloadQt-b7fa0c137c2ef567b286d83435aba843e33280b7.zip
Qt-b7fa0c137c2ef567b286d83435aba843e33280b7.tar.gz
Qt-b7fa0c137c2ef567b286d83435aba843e33280b7.tar.bz2
QNAM HTTP: Avoid one copy
Even if we have implicit sharing in QByteArray it makes sense. Reviewed-by: joao
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qnetworkaccesshttpbackend.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/access/qnetworkaccesshttpbackend.cpp b/src/network/access/qnetworkaccesshttpbackend.cpp
index af971a7..ba26dad 100644
--- a/src/network/access/qnetworkaccesshttpbackend.cpp
+++ b/src/network/access/qnetworkaccesshttpbackend.cpp
@@ -680,8 +680,7 @@ void QNetworkAccessHttpBackend::readFromHttp()
QByteDataBuffer list;
while (httpReply->bytesAvailable() != 0 && nextDownstreamBlockSize() != 0 && nextDownstreamBlockSize() > list.byteAmount()) {
- QByteArray data = httpReply->readAny();
- list.append(data);
+ list.append(httpReply->readAny());
}
if (!list.isEmpty())