Use default member initializers in OCC::SyncJournalErrorBlacklistRecord
authorStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 23:41:33 +0000 (01:41 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 23:41:33 +0000 (01:41 +0200)
This allows to remove its explicit default constructor definition.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
src/common/syncjournalfilerecord.h

index 56a3bde05ffba88f4fa49e9df3066c3633044aec..0e02f12533ba6dc5e62f79c2eebbdf5320061292 100644 (file)
@@ -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;