[gnome-commander/Implement_CppCheck_suggestions: 7/7] Use C++11 initialization in GnomeCmdAdvrenameDialog::Private struct



commit a620074926610871469c7b6786974e5ed2603368
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Tue Mar 12 20:48:35 2019 +0100

    Use C++11 initialization in GnomeCmdAdvrenameDialog::Private struct

 src/dialogs/gnome-cmd-advrename-dialog.cc | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-advrename-dialog.cc b/src/dialogs/gnome-cmd-advrename-dialog.cc
index 8ef6b0ed..dac2fa33 100644
--- a/src/dialogs/gnome-cmd-advrename-dialog.cc
+++ b/src/dialogs/gnome-cmd-advrename-dialog.cc
@@ -50,12 +50,12 @@ struct GnomeCmdAdvrenameDialogClass
 
 struct GnomeCmdAdvrenameDialog::Private
 {
-    gboolean template_has_counters;
+    gboolean template_has_counters {FALSE};
 
-    GtkWidget *vbox;
-    GnomeCmdAdvrenameProfileComponent *profile_component;
-    GtkWidget *files_view;
-    GtkWidget *profile_menu_button;
+    GtkWidget *vbox {NULL};
+    GnomeCmdAdvrenameProfileComponent *profile_component {NULL};
+    GtkWidget *files_view {NULL};
+    GtkWidget *profile_menu_button {NULL};
 
     Private();
     ~Private();
@@ -92,11 +92,6 @@ struct GnomeCmdAdvrenameDialog::Private
 
 inline GnomeCmdAdvrenameDialog::Private::Private()
 {
-    profile_menu_button = NULL;
-    template_has_counters = FALSE;
-    vbox = NULL;
-    profile_component = NULL;
-    files_view = NULL;
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]