From 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 16 Apr 2022 01:58:40 +0200 Subject: Make sure Windows compilation works --- node/repeaternode.cpp | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'node/repeaternode.cpp') diff --git a/node/repeaternode.cpp b/node/repeaternode.cpp index 2010118..f93a9fe 100644 --- a/node/repeaternode.cpp +++ b/node/repeaternode.cpp @@ -21,11 +21,12 @@ ***************************************************************************/ #include "node/repeaternode.h" -#include "diceparserhelper.h" #include "executionnode.h" -#include "parsingtoolbox.h" +#include "result/scalarresult.h" #include "result/stringresult.h" #include +#include +#include using InstructionSet= std::vector; @@ -82,16 +83,18 @@ void RepeaterNode::run(ExecutionNode* previousNode) for(int i= 0; i < timeCount; ++i) { m_startingNodes.push_back(cmd); - std::for_each(cmd.begin(), cmd.end(), [this, &resultVec](ExecutionNode* node) { - node->run(this); - auto end= ParsingToolBox::getLeafNode(node); - auto leafResult= end->getResult(); - - if(nullptr == leafResult) - return; - - resultVec.push_back(leafResult); - }); + std::for_each(cmd.begin(), cmd.end(), + [this, &resultVec](ExecutionNode* node) + { + node->run(this); + auto end= ParsingToolBox::getLeafNode(node); + auto leafResult= end->getResult(); + + if(nullptr == leafResult) + return; + + resultVec.push_back(leafResult); + }); cmd= makeCopy(m_cmd); } if(m_sumAll) @@ -121,7 +124,7 @@ void RepeaterNode::run(ExecutionNode* previousNode) m_result= string; - //qDebug().noquote() << listOfStrResult.join('\n'); + // qDebug().noquote() << listOfStrResult.join('\n'); } if(nullptr != m_nextNode) -- cgit v1.2.3-70-g09d2