Use default member initializers in OCC::FolderDefinition
authorStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 22:42:26 +0000 (00:42 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 22:56:26 +0000 (00:56 +0200)
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 <s-beyer@gmx.net>
src/gui/folder.h

index bd4e40fbc3426c2afa4bd4dda72060efad3a9fe5..93d213ae92fad55aede6e2746aac088bc3d3e0bd 100644 (file)
@@ -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;