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/sortresult.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'node/sortresult.cpp') diff --git a/node/sortresult.cpp b/node/sortresult.cpp index f72d884..8dee7d5 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -45,7 +45,6 @@ void SortResultNode::run(ExecutionNode* node) QList diceList=previousDiceResult->getResultList(); QList diceList2=m_diceResult->getResultList(); - // half-interval search sorting for(int i = 0; isetSortAscending(m_ascending); + if(NULL!=m_nextNode) + { + node->setNextNode(m_nextNode->getCopy()); + } + return node; + +} -- cgit v1.2.3-70-g09d2