Minor refactoring

This commit is contained in:
Patrick Lühne 2018-04-19 15:50:59 +02:00
parent ae918a0846
commit 55f7fd4ff3
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 2 additions and 4 deletions

View File

@ -355,14 +355,12 @@ struct VariableDeclaration
}; };
explicit VariableDeclaration(Type type) explicit VariableDeclaration(Type type)
: type{type}, : type{type}
domain{Domain::Unknown}
{ {
} }
explicit VariableDeclaration(Type type, std::string &&name) explicit VariableDeclaration(Type type, std::string &&name)
: type{type}, : type{type},
domain{Domain::Unknown},
name{std::move(name)} name{std::move(name)}
{ {
} }
@ -373,7 +371,7 @@ struct VariableDeclaration
VariableDeclaration &operator=(VariableDeclaration &&other) = default; VariableDeclaration &operator=(VariableDeclaration &&other) = default;
Type type; Type type;
Domain domain; Domain domain{Domain::Unknown};
std::string name; std::string name;
}; };