From 55f7fd4ff3d5d5ae30e77d589e61a4da40d0b23e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Thu, 19 Apr 2018 15:50:59 +0200 Subject: [PATCH] Minor refactoring --- include/anthem/AST.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/anthem/AST.h b/include/anthem/AST.h index a2c9872..7ae5e90 100644 --- a/include/anthem/AST.h +++ b/include/anthem/AST.h @@ -355,14 +355,12 @@ struct VariableDeclaration }; explicit VariableDeclaration(Type type) - : type{type}, - domain{Domain::Unknown} + : type{type} { } explicit VariableDeclaration(Type type, std::string &&name) : type{type}, - domain{Domain::Unknown}, name{std::move(name)} { } @@ -373,7 +371,7 @@ struct VariableDeclaration VariableDeclaration &operator=(VariableDeclaration &&other) = default; Type type; - Domain domain; + Domain domain{Domain::Unknown}; std::string name; };