diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-29 13:38:12 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-29 14:15:05 (GMT) |
commit | 61d8f281d5f6e339ad497c1f06e4e4e2f306fe43 (patch) | |
tree | 59dce304e97ecbf68c24db686ef00202b6da000a /src/network/access/qnetworkreplyimpl.cpp | |
parent | 150f29a4b3144a59bf49394bbb0eea53eb8a72f6 (diff) | |
download | Qt-61d8f281d5f6e339ad497c1f06e4e4e2f306fe43.zip Qt-61d8f281d5f6e339ad497c1f06e4e4e2f306fe43.tar.gz Qt-61d8f281d5f6e339ad497c1f06e4e4e2f306fe43.tar.bz2 |
QNetworkAccessManager stuff: Some fixes for coverity
A few "fixes" to make that number go down..
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index d903d03..63a9c2d 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -52,10 +52,12 @@ QT_BEGIN_NAMESPACE inline QNetworkReplyImplPrivate::QNetworkReplyImplPrivate() - : copyDevice(0), networkCache(0), + : backend(0), outgoingData(0), + copyDevice(0), networkCache(0), cacheEnabled(false), cacheSaveDevice(0), notificationHandlingPaused(false), bytesDownloaded(0), lastBytesDownloaded(-1), bytesUploaded(-1), + httpStatusCode(0), state(Idle) { } @@ -129,7 +131,7 @@ void QNetworkReplyImplPrivate::_q_sourceReadChannelFinished() void QNetworkReplyImplPrivate::_q_copyReadyRead() { Q_Q(QNetworkReplyImpl); - if (!copyDevice && !q->isOpen()) + if (!copyDevice || !q->isOpen()) return; forever { |