summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/access')
-rw-r--r--src/network/access/qnetworkaccesscache.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/network/access/qnetworkaccesscache.cpp b/src/network/access/qnetworkaccesscache.cpp
index 40aa503732..2e9c275c6b 100644
--- a/src/network/access/qnetworkaccesscache.cpp
+++ b/src/network/access/qnetworkaccesscache.cpp
@@ -68,15 +68,11 @@ struct QNetworkAccessCache::Node
QDeadlineTimer timer;
QByteArray key;
- Node *previous; // "previous" nodes expire "previous"ly (before us)
- Node *next; // "next" nodes expire "next" (after us)
- CacheableObject *object;
+ Node *previous = nullptr; // "previous" nodes expire "previous"ly (before us)
+ Node *next = nullptr; // "next" nodes expire "next" (after us)
+ CacheableObject *object = nullptr;
- int useCount;
-
- Node()
- : previous(nullptr), next(nullptr), object(nullptr), useCount(0)
- { }
+ int useCount = 0;
};
QNetworkAccessCache::CacheableObject::CacheableObject()