mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 22:36:34 +00:00
Initialize all members.
This commit is contained in:
parent
51b200b747
commit
52d201ff22
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user