[gnome-commander] Initialize member variables
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Initialize member variables
- Date: Fri, 7 Oct 2016 20:22:58 +0000 (UTC)
commit a5149616d595b1e5e87e14d15a1c3d6f357d4f97
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sat Oct 1 23:33:31 2016 +0200
Initialize member variables
src/dialogs/gnome-cmd-advrename-dialog.cc | 3 +++
src/dialogs/gnome-cmd-search-dialog.cc | 1 +
src/gnome-cmd-advrename-profile-component.cc | 12 ++++++++++++
src/gnome-cmd-data.cc | 4 ++++
src/gnome-cmd-selection-profile-component.cc | 7 +++++++
src/gnome-cmd-types.h | 18 +++++++++---------
6 files changed, 36 insertions(+), 9 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-advrename-dialog.cc b/src/dialogs/gnome-cmd-advrename-dialog.cc
index 13e946f..f41b781 100644
--- a/src/dialogs/gnome-cmd-advrename-dialog.cc
+++ b/src/dialogs/gnome-cmd-advrename-dialog.cc
@@ -94,6 +94,9 @@ inline GnomeCmdAdvrenameDialog::Private::Private()
{
profile_menu_button = NULL;
template_has_counters = FALSE;
+ vbox = NULL;
+ profile_component = NULL;
+ files_view = NULL;
}
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 3761055..4171bd4 100644
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -154,6 +154,7 @@ inline GnomeCmdSearchDialog::Private::Private(GnomeCmdSearchDialog *dlg): data(d
result_list = NULL;
statusbar = NULL;
pbar = NULL;
+ profile_menu_button = NULL;
}
diff --git a/src/gnome-cmd-advrename-profile-component.cc b/src/gnome-cmd-advrename-profile-component.cc
index 3bd467f..3de8995 100644
--- a/src/gnome-cmd-advrename-profile-component.cc
+++ b/src/gnome-cmd-advrename-profile-component.cc
@@ -375,6 +375,18 @@ inline GnomeCmdAdvrenameProfileComponent::Private::Private()
trim_blanks = gcmd_convert_strip;
regex_model = NULL;
sample_fname = NULL;
+ template_entry = NULL;
+ template_combo = NULL;
+ counter_start_spin = NULL;
+ counter_step_spin = NULL;
+ counter_digits_combo = NULL;
+ regex_view = NULL;
+ regex_add_button = NULL;
+ regex_edit_button = NULL;
+ regex_remove_button = NULL;
+ regex_remove_all_button = NULL;
+ case_combo = NULL;
+ trim_combo = NULL;
}
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 061d5d7..7f10524 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -1338,6 +1338,7 @@ GnomeCmdData::Options::Options(const Options &cfg)
fav_apps = cfg.fav_apps;
device_only_icon = cfg.device_only_icon;
skip_mounting = cfg.skip_mounting;
+ gcmd_settings = NULL;
}
@@ -2605,6 +2606,9 @@ GnomeCmdData::GnomeCmdData(): search_defaults(selections)
umask = ::umask(0);
::umask(umask);
+
+ priv = NULL;
+ settings = NULL;
}
diff --git a/src/gnome-cmd-selection-profile-component.cc b/src/gnome-cmd-selection-profile-component.cc
index f0d3c84..bb7255d 100644
--- a/src/gnome-cmd-selection-profile-component.cc
+++ b/src/gnome-cmd-selection-profile-component.cc
@@ -57,6 +57,13 @@ struct GnomeCmdSelectionProfileComponent::Private
inline GnomeCmdSelectionProfileComponent::Private::Private()
{
+ table = NULL;
+ filter_type_combo = NULL;
+ pattern_combo = NULL;
+ recurse_combo = NULL;
+ find_text_combo = NULL;
+ find_text_check = NULL;
+ case_check = NULL;
}
diff --git a/src/gnome-cmd-types.h b/src/gnome-cmd-types.h
index 813697d..b24fa64 100644
--- a/src/gnome-cmd-types.h
+++ b/src/gnome-cmd-types.h
@@ -103,15 +103,15 @@ struct GnomeCmdColorTheme
GnomeCmdColorTheme()
{
- // respect_theme = TRUE; // FIXME
- // sel_fg = NULL; // FIXME
- // sel_bg = NULL; // FIXME
- // norm_fg = NULL; // FIXME
- // norm_bg = NULL; // FIXME
- // curs_fg = NULL; // FIXME
- // curs_bg = NULL; // FIXME
- // alt_fg = NULL; // FIXME
- // alt_bg = NULL; // FIXME
+ respect_theme = TRUE;
+ sel_fg = NULL;
+ sel_bg = NULL;
+ norm_fg = NULL;
+ norm_bg = NULL;
+ curs_fg = NULL;
+ curs_bg = NULL;
+ alt_fg = NULL;
+ alt_bg = NULL;
}
~GnomeCmdColorTheme()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]