From 15bdfa9fbf70f784d9645b2ac4760280bac9d9d8 Mon Sep 17 00:00:00 2001 From: Stephan Beyer Date: Thu, 21 May 2020 00:42:26 +0200 Subject: [PATCH] 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 --- src/gui/folder.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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; -- 2.30.2