From: Stephan Beyer Date: Wed, 20 May 2020 23:41:33 +0000 (+0200) Subject: Use default member initializers in OCC::SyncJournalErrorBlacklistRecord X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~221^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=04a24c14a8c04404b852c9ad0cf1a2119574f2dd;p=nextcloud-desktop.git Use default member initializers in OCC::SyncJournalErrorBlacklistRecord This allows to remove its explicit default constructor definition. Signed-off-by: Stephan Beyer --- diff --git a/src/common/syncjournalfilerecord.h b/src/common/syncjournalfilerecord.h index 56a3bde05..0e02f1253 100644 --- a/src/common/syncjournalfilerecord.h +++ b/src/common/syncjournalfilerecord.h @@ -81,31 +81,22 @@ public: InsufficientRemoteStorage }; - SyncJournalErrorBlacklistRecord() - : _retryCount(0) - , _errorCategory(Category::Normal) - , _lastTryModtime(0) - , _lastTryTime(0) - , _ignoreDuration(0) - { - } - /// The number of times the operation was unsuccessful so far. - int _retryCount; + int _retryCount = 0; /// The last error string. QString _errorString; /// The error category. Sometimes used for special actions. - Category _errorCategory; + Category _errorCategory = Category::Normal; - qint64 _lastTryModtime; + qint64 _lastTryModtime = 0; QByteArray _lastTryEtag; /// The last time the operation was attempted (in s since epoch). - qint64 _lastTryTime; + qint64 _lastTryTime = 0; /// The number of seconds the file shall be ignored. - qint64 _ignoreDuration; + qint64 _ignoreDuration = 0; QString _file; QString _renameTarget;