From 48111939980f81e40e17b4b11defe1699de9c4cf Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Tue, 24 Mar 2020 13:32:36 +0100 Subject: [PATCH] Initialize all members of Property class --- include/setup.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/setup.h b/include/setup.h index 1bb5c3eb..4f7e6595 100644 --- a/include/setup.h +++ b/include/setup.h @@ -114,9 +114,17 @@ public: struct Changeable { enum Value { Always, WhenIdle, OnlyAtStart, Deprecated }; }; + const std::string propname; - Property(std::string const& _propname, Changeable::Value when):propname(_propname),change(when) { } + Property(const std::string &name, Changeable::Value when) + : propname(name), + value(), + suggested_values{}, + default_value(), + change(when) + {} + virtual ~Property() = default; void Set_values(const char * const * in);