summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhttpthreaddelegate.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-02-22 23:38:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-26 22:03:57 +0100
commitbcea86b7da38b39f83bafba6f53c08409f5f09a3 (patch)
tree7ef8727c3b74cd2257cfba98a4165d4633797ad9 /src/network/access/qhttpthreaddelegate.cpp
parente3db3c4d78e6a82adfb13746d5177abc5d4c12d8 (diff)
QtNetwork: add qMove() to QSharedPointer uses where applicable
QSharedPointers here are passed by value - good, since it enabled C++11 move semantics, transparently. However, when passing such parameters on to assignment operators or other functions, copies were made where moves would have been sufficient. Thus, add some qMove()s. Change-Id: Ied1a5edf1bfbb16108dfeefbe85e58ab3d4ef92f Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network/access/qhttpthreaddelegate.cpp')
-rw-r--r--src/network/access/qhttpthreaddelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qhttpthreaddelegate.cpp b/src/network/access/qhttpthreaddelegate.cpp
index b7e8bb3f72..5602c8028a 100644
--- a/src/network/access/qhttpthreaddelegate.cpp
+++ b/src/network/access/qhttpthreaddelegate.cpp
@@ -184,7 +184,7 @@ public:
: QHttpNetworkConnection(hostName, port, encrypt)
#else
QNetworkAccessCachedHttpConnection(const QString &hostName, quint16 port, bool encrypt, QSharedPointer<QNetworkSession> networkSession)
- : QHttpNetworkConnection(hostName, port, encrypt, /*parent=*/0, networkSession)
+ : QHttpNetworkConnection(hostName, port, encrypt, /*parent=*/0, qMove(networkSession))
#endif
{
setExpires(true);