diff options
| author | 2017-10-27 22:19:20 +0200 | |
|---|---|---|
| committer | 2017-10-29 03:30:46 +0100 | |
| commit | f053853e87624a045438bacd4dd1494e91ae381f (patch) | |
| tree | cbf98ae65d48f4158c3af73be6bd0a1fb9417335 /node/splitnode.cpp | |
| parent | a543a6ca8ddc2826a4433044ed1a040acbbf36a3 (diff) | |
| download | OneRoll-f053853e87624a045438bacd4dd1494e91ae381f.tar.gz OneRoll-f053853e87624a045438bacd4dd1494e91ae381f.zip | |
-c++11 update about for and nullptr.
Diffstat (limited to 'node/splitnode.cpp')
| -rw-r--r-- | node/splitnode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node/splitnode.cpp b/node/splitnode.cpp index a074248..ed32fdd 100644 --- a/node/splitnode.cpp +++ b/node/splitnode.cpp @@ -29,7 +29,7 @@ SplitNode::SplitNode() void SplitNode::run(ExecutionNode* previous) { m_previousNode = previous; - if(NULL!=previous) + if(nullptr!=previous) { m_result->setPrevious(previous->getResult()); @@ -56,7 +56,7 @@ void SplitNode::run(ExecutionNode* previous) } } } - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { m_nextNode->run(this); } @@ -76,7 +76,7 @@ QString SplitNode::toString(bool withLabel) const qint64 SplitNode::getPriority() const { qint64 priority=0; - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { priority = m_nextNode->getPriority(); } @@ -85,7 +85,7 @@ qint64 SplitNode::getPriority() const ExecutionNode* SplitNode::getCopy() const { SplitNode* node = new SplitNode(); - if(NULL!=m_nextNode) + if(nullptr!=m_nextNode) { node->setNextNode(m_nextNode->getCopy()); } |