diff options
Diffstat (limited to 'node/stringnode.cpp')
| -rw-r--r-- | node/stringnode.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/node/stringnode.cpp b/node/stringnode.cpp index 157f595..d427cd6 100644 --- a/node/stringnode.cpp +++ b/node/stringnode.cpp @@ -115,7 +115,16 @@ qint64 StringNode::getPriority() const { priority = m_nextNode->getPriority(); } - - return priority; } +ExecutionNode* StringNode::getCopy() const +{ + StringNode* node = new StringNode(); + node->setString(m_data); + if(NULL!=m_nextNode) + { + node->setNextNode(m_nextNode->getCopy()); + } + return node; + +} |