diff --git a/src/tools/schema/tag.hpp b/src/tools/schema/tag.hpp index 41876768712..2691ae65b37 100644 --- a/src/tools/schema/tag.hpp +++ b/src/tools/schema/tag.hpp @@ -43,11 +43,11 @@ public: const std::string &type, const std::string &def, bool mandatory) + : name_(name) + , type_(type) + , default_(def) + , mandatory_(mandatory) { - name_ = name; - type_ = type; - default_ = def; - mandatory_ = mandatory; } const std::string & get_name() const{