diff options
| author | 2017-11-25 02:51:23 +0100 | |
|---|---|---|
| committer | 2017-11-25 02:51:23 +0100 | |
| commit | 95d4b12f2900f13e5836cb460261c96889bdd4e5 (patch) | |
| tree | afcf71441e868fbd215eb68da69229e1b458a92d /node/keepdiceexecnode.cpp | |
| parent | 6769063ea8a41a568b06c63b797bc26c3c5a1c6d (diff) | |
| download | OneRoll-95d4b12f2900f13e5836cb460261c96889bdd4e5.tar.gz OneRoll-95d4b12f2900f13e5836cb460261c96889bdd4e5.zip | |
remove useless commit
Diffstat (limited to 'node/keepdiceexecnode.cpp')
| -rw-r--r-- | node/keepdiceexecnode.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index 6167632..a93cc11 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -36,13 +36,13 @@ KeepDiceExecNode::~KeepDiceExecNode() void KeepDiceExecNode::run(ExecutionNode* previous) { m_previousNode = previous; - if(NULL==previous) + if(nullptr==previous) { return; } DiceResult* previousDiceResult = static_cast<DiceResult*>(previous->getResult()); m_result->setPrevious(previousDiceResult); - if(NULL!=previousDiceResult) + if(nullptr!=previousDiceResult) { QList<Die*> diceList=previousDiceResult->getResultList(); @@ -70,7 +70,7 @@ void KeepDiceExecNode::run(ExecutionNode* previous) } m_diceResult->setResultList(diceList2); - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { m_nextNode->run(this); } @@ -94,7 +94,7 @@ QString KeepDiceExecNode::toString(bool wl) const qint64 KeepDiceExecNode::getPriority() const { qint64 priority=0; - if(nullptr!=m_previousNode) + if(nullptr!=m_nextNode) { priority = m_nextNode->getPriority(); } @@ -107,7 +107,7 @@ ExecutionNode* KeepDiceExecNode::getCopy() const { KeepDiceExecNode* node = new KeepDiceExecNode(); node->setDiceKeepNumber(m_numberOfDice); - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { node->setNextNode(m_nextNode->getCopy()); } |