diff options
| author | 2022-04-16 01:58:40 +0200 | |
|---|---|---|
| committer | 2022-04-16 02:59:30 +0200 | |
| commit | 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 (patch) | |
| tree | e29af0f803de724e28eab85da2dfe6c535a8292b /node/repeaternode.cpp | |
| parent | 0c040da59e6aa2df3bd0c22e38b2afe0512d3749 (diff) | |
| download | OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.tar.gz OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.zip | |
Make sure Windows compilation works
Diffstat (limited to 'node/repeaternode.cpp')
| -rw-r--r-- | node/repeaternode.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
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 <QDebug> +#include <diceparser/diceparserhelper.h> +#include <diceparser/parsingtoolbox.h> using InstructionSet= std::vector<ExecutionNode*>; @@ -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) |