diff options
| author | 2022-04-17 09:39:47 +0200 | |
|---|---|---|
| committer | 2022-04-17 09:39:47 +0200 | |
| commit | 0faec227b3ceb69225c59b1fc0d1da53de848ce5 (patch) | |
| tree | a3888819d8630d26ce3f62226cd9e8507cab4dda /node/keepdiceexecnode.cpp | |
| parent | 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 (diff) | |
| download | OneRoll-0faec227b3ceb69225c59b1fc0d1da53de848ce5.tar.gz OneRoll-0faec227b3ceb69225c59b1fc0d1da53de848ce5.zip | |
Fix submodule with Qt6
Diffstat (limited to 'node/keepdiceexecnode.cpp')
| -rw-r--r-- | node/keepdiceexecnode.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index 3e4490d..b197822 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -20,11 +20,10 @@ *************************************************************************/ #include <QList> +#include "diceparser/parsingtoolbox.h" #include "keepdiceexecnode.h" -#include "parsingtoolbox.h" -KeepDiceExecNode::KeepDiceExecNode() - : m_diceResult(new DiceResult()) +KeepDiceExecNode::KeepDiceExecNode() : m_diceResult(new DiceResult()) { m_result= m_diceResult; } @@ -37,18 +36,18 @@ void KeepDiceExecNode::run(ExecutionNode* previous) return; } m_numberOfDiceNode->run(previous); - auto lastnode = ParsingToolBox::getLeafNode(m_numberOfDiceNode); + auto lastnode= ParsingToolBox::getLeafNode(m_numberOfDiceNode); if(nullptr == lastnode) return; - auto result = lastnode->getResult(); + auto result= lastnode->getResult(); if(nullptr == result) return; if(!result->hasResultOfType(Dice::RESULT_TYPE::SCALAR)) return; - auto numberOfDice = result->getResult(Dice::RESULT_TYPE::SCALAR).toInt(); + auto numberOfDice= result->getResult(Dice::RESULT_TYPE::SCALAR).toInt(); - DiceResult* previousDiceResult = dynamic_cast<DiceResult*>(previous->getResult()); + DiceResult* previousDiceResult= dynamic_cast<DiceResult*>(previous->getResult()); m_result->setPrevious(previousDiceResult); if(nullptr != previousDiceResult) { @@ -119,7 +118,7 @@ qint64 KeepDiceExecNode::getPriority() const ExecutionNode* KeepDiceExecNode::getCopy() const { - KeepDiceExecNode* node = new KeepDiceExecNode(); + KeepDiceExecNode* node= new KeepDiceExecNode(); if(nullptr != m_numberOfDiceNode) { node->setDiceKeepNumber(m_numberOfDiceNode->getCopy()); |