diff options
| author | 2017-11-11 18:51:13 +0100 | |
|---|---|---|
| committer | 2017-11-11 18:51:13 +0100 | |
| commit | cedc70618afa6826d409a64078ea1a8ede4af06c (patch) | |
| tree | 3082249db90f6eebe7b23b226c5c688e7f4648a5 /node/sortresult.cpp | |
| parent | f329a8e39beb732b5685eb01476221b461cc50d1 (diff) | |
| download | OneRoll-cedc70618afa6826d409a64078ea1a8ede4af06c.tar.gz OneRoll-cedc70618afa6826d409a64078ea1a8ede4af06c.zip | |
-replace NULL to nullptr.
Diffstat (limited to 'node/sortresult.cpp')
| -rw-r--r-- | node/sortresult.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/node/sortresult.cpp b/node/sortresult.cpp index d864aa2..5406eb6 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -34,13 +34,13 @@ SortResultNode::SortResultNode() void SortResultNode::run(ExecutionNode* node) { m_previousNode = node; - if(NULL==node) + if(nullptr==node) { return; } DiceResult* previousDiceResult = dynamic_cast<DiceResult*>(node->getResult()); m_diceResult->setPrevious(previousDiceResult); - if(NULL!=previousDiceResult) + if(nullptr!=previousDiceResult) { QList<Die*> diceList=previousDiceResult->getResultList(); QList<Die*> diceList2=m_diceResult->getResultList(); @@ -57,7 +57,7 @@ void SortResultNode::run(ExecutionNode* node) bool found = false; int start = 0; int end = diceList2.size(); - Die* tmp2 = NULL; + Die* tmp2 = nullptr; while(!found) { int distance = end-start; @@ -92,7 +92,7 @@ void SortResultNode::run(ExecutionNode* node) } m_diceResult->setResultList(diceList2); - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { m_nextNode->run(this); } @@ -123,7 +123,7 @@ QString SortResultNode::toString(bool wl) const qint64 SortResultNode::getPriority() const { qint64 priority=0; - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { priority = m_nextNode->getPriority(); } @@ -135,7 +135,7 @@ ExecutionNode* SortResultNode::getCopy() const { SortResultNode* node = new SortResultNode(); node->setSortAscending(m_ascending); - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { node->setNextNode(m_nextNode->getCopy()); } |