Remove QNetworkAccessCache::Node's explicit ctor

Change-Id: I2a993bcf96a0c603496e8a420251a7e01f46acee
Reviewed-by: Markus Goetz (Woboq GmbH) <markus@woboq.com>
bb10
Mårten Nordheim 2021-09-06 16:40:41 +02:00
parent c2a2522089
commit e94f75fc50
1 changed files with 4 additions and 8 deletions

View File

@ -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()