mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-25 01:02:37 +01:00
Add missing calls to base class constructor.
This commit is contained in:
parent
e4966d1594
commit
bbe7a48c27
@ -31,7 +31,8 @@
|
|||||||
QMutex ThreadSafeNetworkDiskCache::sMutex;
|
QMutex ThreadSafeNetworkDiskCache::sMutex;
|
||||||
QNetworkDiskCache* ThreadSafeNetworkDiskCache::sCache = nullptr;
|
QNetworkDiskCache* ThreadSafeNetworkDiskCache::sCache = nullptr;
|
||||||
|
|
||||||
ThreadSafeNetworkDiskCache::ThreadSafeNetworkDiskCache(QObject* parent) {
|
ThreadSafeNetworkDiskCache::ThreadSafeNetworkDiskCache(QObject* parent)
|
||||||
|
: QAbstractNetworkCache(parent) {
|
||||||
QMutexLocker l(&sMutex);
|
QMutexLocker l(&sMutex);
|
||||||
if (!sCache) {
|
if (!sCache) {
|
||||||
sCache = new QNetworkDiskCache;
|
sCache = new QNetworkDiskCache;
|
||||||
@ -120,7 +121,7 @@ QNetworkReply* NetworkAccessManager::createRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
NetworkTimeouts::NetworkTimeouts(int timeout_msec, QObject* parent)
|
NetworkTimeouts::NetworkTimeouts(int timeout_msec, QObject* parent)
|
||||||
: timeout_msec_(timeout_msec) {}
|
: QObject(parent), timeout_msec_(timeout_msec) {}
|
||||||
|
|
||||||
void NetworkTimeouts::AddReply(QNetworkReply* reply) {
|
void NetworkTimeouts::AddReply(QNetworkReply* reply) {
|
||||||
if (timers_.contains(reply)) return;
|
if (timers_.contains(reply)) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user