diff --git a/lib/pddlparse/include/pddlparse/AST.h b/lib/pddlparse/include/pddlparse/AST.h index c7ce266..a46c16a 100644 --- a/lib/pddlparse/include/pddlparse/AST.h +++ b/lib/pddlparse/include/pddlparse/AST.h @@ -26,7 +26,7 @@ namespace ast struct Constant { - explicit Constant(ConstantDeclaration *declaration) + explicit Constant(ConstantDeclaration &declaration) : declaration{declaration} { } @@ -36,7 +36,7 @@ struct Constant Constant(Constant &&other) = default; Constant &operator=(Constant &&other) = default; - ConstantDeclaration *declaration{nullptr}; + ConstantDeclaration &declaration; }; ////////////////////////////////////////////////////////////////////////////////////////////////////