From f48f8ba0bb7d2b3b4c1210ca4c7a3b23108c2f5a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 9 Apr 2014 08:50:57 +0200 Subject: QHttpThreadDelegate: use default ctor instead of QSharedPointer(0) Code like this makes it impossible to provide a templated QSharedPointer(X*) ctor, so proactively rewrite to use the proper default ctor, which has the same effect. Change-Id: I2572e92b12804f873fac4927e93db83f796729f5 Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/network/access/qhttpthreaddelegate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/access/qhttpthreaddelegate.cpp b/src/network/access/qhttpthreaddelegate.cpp index 8c3923f060..43eb85f1af 100644 --- a/src/network/access/qhttpthreaddelegate.cpp +++ b/src/network/access/qhttpthreaddelegate.cpp @@ -227,15 +227,15 @@ QHttpThreadDelegate::QHttpThreadDelegate(QObject *parent) : , downloadBufferMaximumSize(0) , readBufferMaxSize(0) , bytesEmitted(0) - , pendingDownloadData(0) - , pendingDownloadProgress(0) + , pendingDownloadData() + , pendingDownloadProgress() , synchronous(false) , incomingStatusCode(0) , isPipeliningUsed(false) , isSpdyUsed(false) , incomingContentLength(-1) , incomingErrorCode(QNetworkReply::NoError) - , downloadBuffer(0) + , downloadBuffer() , httpConnection(0) , httpReply(0) , synchronousRequestLoop(0) -- cgit v1.2.3