From: Stephan Beyer Date: Wed, 20 May 2020 23:32:16 +0000 (+0200) Subject: Use default member initializers in OCC::SyncJournalDb sub-structs X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~221^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3015ea5715f351eaf499126746ce512454551b9f;p=nextcloud-desktop.git Use default member initializers in OCC::SyncJournalDb sub-structs This allows to remove their explicit default constructor definitions. Signed-off-by: Stephan Beyer --- diff --git a/src/common/syncjournaldb.h b/src/common/syncjournaldb.h index 4d09aa844..e8ecbaa2e 100644 --- a/src/common/syncjournaldb.h +++ b/src/common/syncjournaldb.h @@ -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.