diff options
| author | 2017-11-25 02:51:23 +0100 | |
|---|---|---|
| committer | 2017-11-25 02:51:23 +0100 | |
| commit | 95d4b12f2900f13e5836cb460261c96889bdd4e5 (patch) | |
| tree | afcf71441e868fbd215eb68da69229e1b458a92d /node/sortresult.cpp | |
| parent | 6769063ea8a41a568b06c63b797bc26c3c5a1c6d (diff) | |
| download | OneRoll-95d4b12f2900f13e5836cb460261c96889bdd4e5.tar.gz OneRoll-95d4b12f2900f13e5836cb460261c96889bdd4e5.zip | |
remove useless commit
Diffstat (limited to 'node/sortresult.cpp')
| -rw-r--r-- | node/sortresult.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node/sortresult.cpp b/node/sortresult.cpp index 062e1d2..5406eb6 100644 --- a/node/sortresult.cpp +++ b/node/sortresult.cpp @@ -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(nullptr != m_previousNode) + 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()); } |