Use default member initializers in OCC::SyncJournalDb sub-structs
authorStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 23:32:16 +0000 (01:32 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 23:32:16 +0000 (01:32 +0200)
This allows to remove their explicit default constructor definitions.

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

index 4d09aa844988b34d606da874744b0a2ad7dd2aa8..e8ecbaa2ed3f7e9017f33623129509fbc07d1605 100644 (file)
@@ -86,33 +86,19 @@ public:
 
     struct DownloadInfo
     {
-        DownloadInfo()
-            : _errorCount(0)
-            , _valid(false)
-        {
-        }
         QString _tmpfile;
         QByteArray _etag;
-        int _errorCount;
-        bool _valid;
+        int _errorCount = 0;
+        bool _valid = false;
     };
     struct UploadInfo
     {
-        UploadInfo()
-            : _chunk(0)
-            , _transferid(0)
-            , _size(0)
-            , _modtime(0)
-            , _errorCount(0)
-            , _valid(false)
-        {
-        }
-        int _chunk;
-        int _transferid;
-        quint64 _size; //currently unused
-        qint64 _modtime;
-        int _errorCount;
-        bool _valid;
+        int _chunk = 0;
+        int _transferid = 0;
+        quint64 _size = 0; //currently unused
+        qint64 _modtime = 0;
+        int _errorCount = 0;
+        bool _valid = false;
         QByteArray _contentChecksum;
         /**
          * Returns true if this entry refers to a chunked upload that can be continued.