From ae81e675a117819aa5a2eb7f9be687aff5a6bb9f Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 20 Aug 2015 11:56:10 +0200 Subject: add bool parameter to toString() function in node. --- node/parenthesesnode.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'node/parenthesesnode.cpp') diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp index 2876147..3398f0a 100644 --- a/node/parenthesesnode.cpp +++ b/node/parenthesesnode.cpp @@ -49,9 +49,16 @@ void ParenthesesNode::run(ExecutionNode* /*previous*/) m_nextNode->run(this); } } -QString ParenthesesNode::toString() const +QString ParenthesesNode::toString(bool b) const { - return "ParenthesesNode"; + if(wl) + { + return QString("%1 [label=\"ParenthesesNode\"]").arg(m_id); + } + else + { + return m_id; + } } qint64 ParenthesesNode::getPriority() const { -- cgit v1.2.3-70-g09d2 From d0aed2adeb87bfd969ec24444d3e27928bbea5ff Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 20 Aug 2015 12:32:25 +0200 Subject: fix compilation --- node/parenthesesnode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/parenthesesnode.cpp') diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp index 3398f0a..d859632 100644 --- a/node/parenthesesnode.cpp +++ b/node/parenthesesnode.cpp @@ -51,7 +51,7 @@ void ParenthesesNode::run(ExecutionNode* /*previous*/) } QString ParenthesesNode::toString(bool b) const { - if(wl) + if(b) { return QString("%1 [label=\"ParenthesesNode\"]").arg(m_id); } -- cgit v1.2.3-70-g09d2