aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/parenthesesnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/parenthesesnode.cpp')
-rw-r--r--node/parenthesesnode.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp
index 7bd5a6a..f62680e 100644
--- a/node/parenthesesnode.cpp
+++ b/node/parenthesesnode.cpp
@@ -1,3 +1,7 @@
+#ifndef PARENTHESESNODE_H
+#define PARENTHESESNODE_H
+
+#include "executionnode.h"
#include "parenthesesnode.h"
ParenthesesNode::ParenthesesNode()
@@ -10,6 +14,7 @@ void ParenthesesNode::setInternelNode(ExecutionNode* node)
}
void ParenthesesNode::run(ExecutionNode* /*previous*/)
{
+ qDebug() << "ParenthesesNode node";
if(NULL!=m_internalNode)
{
m_internalNode->run(this);
@@ -18,7 +23,7 @@ void ParenthesesNode::run(ExecutionNode* /*previous*/)
{
temp=temp->getNextNode();
}
- m_result = m_internalNode->getResult();
+ m_result = temp->getResult();
}
@@ -27,3 +32,7 @@ void ParenthesesNode::run(ExecutionNode* /*previous*/)
m_nextNode->run(this);
}
}
+QString ParenthesesNode::toString() const
+{
+ return "ParenthesesNode";
+}