[gnome-commander] Some C++11 work: initialization of member variables of the Profile structure
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Some C++11 work: initialization of member variables of the Profile structure
- Date: Sun, 27 Jan 2019 21:11:37 +0000 (UTC)
commit 70a100cdf9ccf53c6cb532a5eeed8fe10b5e75a7
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Jan 27 22:10:58 2019 +0100
Some C++11 work: initialization of member variables of the Profile structure
src/gnome-cmd-data.h | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index d7268e83..53ac7226 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -575,20 +575,15 @@ struct GnomeCmdData
struct Profile
{
std::string name;
- std::string template_string;
- guint counter_start;
- guint counter_width;
- gint counter_step;
+ std::string template_string {"$N"};
+ guint counter_start {1};
+ guint counter_width {1};
+ gint counter_step {1};
std::vector<GnomeCmd::ReplacePattern> regexes;
- guint case_conversion;
- guint trim_blanks;
-
- Profile(): template_string("$N"),
- counter_start(1), counter_width(1), counter_step(1),
- case_conversion(0), trim_blanks(3) {}
- ~Profile() {}
+ guint case_conversion {0};
+ guint trim_blanks {3};
const std::string &description() const { return template_string; }
void reset();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]