From: Stephan Beyer Date: Wed, 20 May 2020 22:42:26 +0000 (+0200) Subject: Use default member initializers in OCC::FolderDefinition X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~221^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15bdfa9fbf70f784d9645b2ac4760280bac9d9d8;p=nextcloud-desktop.git Use default member initializers in OCC::FolderDefinition Using default member initializers (available since C++11) in OCC::FolderDefinition allows to remove its explicit default constructor, which is favorable. Signed-off-by: Stephan Beyer --- diff --git a/src/gui/folder.h b/src/gui/folder.h index bd4e40fbc..93d213ae9 100644 --- a/src/gui/folder.h +++ b/src/gui/folder.h @@ -47,12 +47,6 @@ class FolderWatcher; class FolderDefinition { public: - FolderDefinition() - : paused(false) - , ignoreHiddenFiles(false) - { - } - /// The name of the folder in the ui and internally QString alias; /// path on local machine @@ -62,9 +56,9 @@ public: /// path on remote QString targetPath; /// whether the folder is paused - bool paused; + bool paused = false; /// whether the folder syncs hidden files - bool ignoreHiddenFiles; + bool ignoreHiddenFiles = false; /// The CLSID where this folder appears in registry for the Explorer navigation pane entry. QUuid navigationPaneClsid;