diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-04-07 12:09:20 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-04-26 15:16:21 (GMT) |
commit | 2e95891d29cb115dfadd57076e215030cd255489 (patch) | |
tree | 023ecb5f9335a6541e5bf6dc520adbede4cde4af /src | |
parent | ed692616c6a358ccfbdb10b716d6d5829a92f7bb (diff) | |
download | Qt-2e95891d29cb115dfadd57076e215030cd255489.zip Qt-2e95891d29cb115dfadd57076e215030cd255489.tar.gz Qt-2e95891d29cb115dfadd57076e215030cd255489.tar.bz2 |
QNAM: Use a reference in appendDownstreamData
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qbytedata_p.h | 2 | ||||
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qbytedata_p.h b/src/corelib/tools/qbytedata_p.h index 9aad6a9..17a3a60 100644 --- a/src/corelib/tools/qbytedata_p.h +++ b/src/corelib/tools/qbytedata_p.h @@ -84,7 +84,7 @@ public: } - inline void append(QByteArray& bd) + inline void append(const QByteArray& bd) { if (bd.isEmpty()) return; diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index 4f35358..0f5bdd0 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -448,7 +448,7 @@ void QNetworkReplyImplPrivate::appendDownstreamData(QByteDataBuffer &data) qint64 bytesWritten = 0; for (int i = 0; i < data.bufferCount(); i++) { - QByteArray item = data[i]; + QByteArray const &item = data[i]; if (cacheSaveDevice) cacheSaveDevice->write(item.constData(), item.size()); |