From f946b10fbd72dd760f04ad9475f2ba3ccb56666f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 19 Feb 2010 17:44:44 -0800 Subject: Simplify null_statement construction It only needs a token*, so build that into the constructor. --- staptree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index a654a7b4..bc5f0bfc 100644 --- a/staptree.h +++ b/staptree.h @@ -492,6 +492,7 @@ struct statement virtual void visit (visitor* u) = 0; const token* tok; statement (); + statement (const token* tok); virtual ~statement (); }; @@ -547,6 +548,7 @@ struct null_statement: public statement { void print (std::ostream& o) const; void visit (visitor* u); + null_statement (const token* tok); }; -- cgit