diff options
| author | 2016-11-28 00:36:15 +0100 | |
|---|---|---|
| committer | 2016-11-28 00:36:15 +0100 | |
| commit | 13e297604b00615d47352538e3c82ea1ac700d4c (patch) | |
| tree | 567efe03594d261831897f03a7821c4c6eeac59b /node/listaliasnode.cpp | |
| parent | cdd1716bd1aa8d9bbd0137aa98ff24867b6b3a0e (diff) | |
| download | OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.tar.gz OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.zip | |
-Add API for copying a branch of execution node.
-Allow to use if node several times.
Diffstat (limited to 'node/listaliasnode.cpp')
| -rw-r--r-- | node/listaliasnode.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/node/listaliasnode.cpp b/node/listaliasnode.cpp index 9ced186..91644d4 100644 --- a/node/listaliasnode.cpp +++ b/node/listaliasnode.cpp @@ -75,10 +75,19 @@ QString ListAliasNode::toString(bool wl) const { return m_id; } - - } qint64 ListAliasNode::getPriority() const { return 0; } + +ExecutionNode* ListAliasNode::getCopy() const +{ + ListAliasNode* node = new ListAliasNode(m_aliasList); + if(NULL!=m_nextNode) + { + node->setNextNode(m_nextNode->getCopy()); + } + return node; + +} |