From 13e297604b00615d47352538e3c82ea1ac700d4c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Mon, 28 Nov 2016 00:36:15 +0100 Subject: -Add API for copying a branch of execution node. -Allow to use if node several times. --- node/helpnode.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'node/helpnode.cpp') diff --git a/node/helpnode.cpp b/node/helpnode.cpp index 30fa904..4425969 100644 --- a/node/helpnode.cpp +++ b/node/helpnode.cpp @@ -68,3 +68,13 @@ void HelpNode::setHelpPath(QString path) { m_path = path; } + +ExecutionNode* HelpNode::getCopy() const +{ + HelpNode* node = new HelpNode(); + if(NULL!=m_nextNode) + { + node->setNextNode(m_nextNode->getCopy()); + } + return node; +} -- cgit v1.2.3-70-g09d2