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.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'staptree.cxx') diff --git a/staptree.cxx b/staptree.cxx index 7a335fc3..a31112cb 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -42,6 +42,18 @@ statement::statement (): } +statement::statement (const token* tok): + tok (tok) +{ +} + + +null_statement::null_statement (const token* tok): + statement(tok) +{ +} + + statement::~statement () { } -- cgit