aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/parenthesesnode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-10-27 22:19:20 +0200
committerRenaud G <renaud@rolisteam.org>2017-10-29 03:30:46 +0100
commitf053853e87624a045438bacd4dd1494e91ae381f (patch)
treecbf98ae65d48f4158c3af73be6bd0a1fb9417335 /node/parenthesesnode.cpp
parenta543a6ca8ddc2826a4433044ed1a040acbbf36a3 (diff)
downloadOneRoll-f053853e87624a045438bacd4dd1494e91ae381f.tar.gz
OneRoll-f053853e87624a045438bacd4dd1494e91ae381f.zip
-c++11 update about for and nullptr.
Diffstat (limited to 'node/parenthesesnode.cpp')
-rw-r--r--node/parenthesesnode.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/node/parenthesesnode.cpp b/node/parenthesesnode.cpp
index 96c0bb7..5c0379f 100644
--- a/node/parenthesesnode.cpp
+++ b/node/parenthesesnode.cpp
@@ -22,7 +22,7 @@
#include "parenthesesnode.h"
ParenthesesNode::ParenthesesNode()
- : m_internalNode(NULL)
+ : m_internalNode(nullptr)
{
}
@@ -32,12 +32,12 @@ void ParenthesesNode::setInternelNode(ExecutionNode* node)
}
void ParenthesesNode::run(ExecutionNode* /*previous*/)
{
- m_previousNode = NULL;
- if(NULL!=m_internalNode)
+ m_previousNode = nullptr;
+ if(nullptr!=m_internalNode)
{
m_internalNode->run(this);
ExecutionNode* temp=m_internalNode;
- while(NULL!=temp->getNextNode())
+ while(nullptr!=temp->getNextNode())
{
temp=temp->getNextNode();
}
@@ -45,7 +45,7 @@ void ParenthesesNode::run(ExecutionNode* /*previous*/)
}
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
m_nextNode->run(this);
}
@@ -69,11 +69,11 @@ qint64 ParenthesesNode::getPriority() const
ExecutionNode* ParenthesesNode::getCopy() const
{
ParenthesesNode* node = new ParenthesesNode();
- if(NULL!=m_internalNode)
+ if(nullptr!=m_internalNode)
{
node->setInternelNode(m_internalNode->getCopy());
}
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
node->setNextNode(m_nextNode->getCopy());
}
@@ -96,7 +96,7 @@ void ParenthesesNode::generateDotTree(QString & s)
}
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
s.append(toString(false));
s.append(" -> ");
@@ -109,8 +109,8 @@ void ParenthesesNode::generateDotTree(QString & s)
{
s.append(toString(false));
s.append(" -> ");
- s.append("NULL;\n");
- if(NULL!=m_result)
+ s.append("nullptr;\n");
+ if(nullptr!=m_result)
{
s.append(toString(false));