[gnome-commander/Implement_CppCheck_suggestions: 3/7] Use initialization list in the GnomeCmdColorTheme struct
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/Implement_CppCheck_suggestions: 3/7] Use initialization list in the GnomeCmdColorTheme struct
- Date: Tue, 12 Mar 2019 19:49:35 +0000 (UTC)
commit b0cff8d721cabca8d61b0f032b2aee47243e96e3
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Mar 12 14:20:31 2019 +0100
Use initialization list in the GnomeCmdColorTheme struct
src/gnome-cmd-types.h | 27 +++++++++------------------
1 file changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/src/gnome-cmd-types.h b/src/gnome-cmd-types.h
index 6952c81e..c9ff4fc4 100644
--- a/src/gnome-cmd-types.h
+++ b/src/gnome-cmd-types.h
@@ -95,24 +95,15 @@ typedef enum // The (reversed) order of following enums is significant
struct GnomeCmdColorTheme
{
- gboolean respect_theme;
- GdkColor *sel_fg, *sel_bg;
- GdkColor *norm_fg, *norm_bg;
- GdkColor *curs_fg, *curs_bg;
- GdkColor *alt_fg, *alt_bg;
-
- GnomeCmdColorTheme()
- {
- 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;
- }
+ gboolean respect_theme {TRUE};
+ GdkColor *sel_fg {NULL};
+ GdkColor *sel_bg {NULL};
+ GdkColor *norm_fg {NULL};
+ GdkColor *norm_bg {NULL};
+ GdkColor *curs_fg {NULL};
+ GdkColor *curs_bg {NULL};
+ GdkColor *alt_fg {NULL};
+ GdkColor *alt_bg {NULL};
~GnomeCmdColorTheme()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]