aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/helpnode.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/helpnode.cpp
parenta543a6ca8ddc2826a4433044ed1a040acbbf36a3 (diff)
downloadOneRoll-f053853e87624a045438bacd4dd1494e91ae381f.tar.gz
OneRoll-f053853e87624a045438bacd4dd1494e91ae381f.zip
-c++11 update about for and nullptr.
Diffstat (limited to 'node/helpnode.cpp')
-rw-r--r--node/helpnode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/helpnode.cpp b/node/helpnode.cpp
index 4425969..bcd7aaf 100644
--- a/node/helpnode.cpp
+++ b/node/helpnode.cpp
@@ -30,9 +30,9 @@ void HelpNode::run(ExecutionNode* previous)
StringResult* txtResult = dynamic_cast<StringResult*>(m_result);
txtResult->setHighLight(false);
- if(NULL != previous)
+ if(nullptr != previous)
{
- if(previous->getResult() == NULL)
+ if(previous->getResult() == nullptr)
{
txtResult->setText(QObject::tr("Rolisteam Dice Parser:\nFull documentation at: %1").arg(m_path));
}
@@ -43,7 +43,7 @@ void HelpNode::run(ExecutionNode* previous)
m_result->setPrevious(previous->getResult());
}
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
m_nextNode->run(this);
}
@@ -72,7 +72,7 @@ void HelpNode::setHelpPath(QString path)
ExecutionNode* HelpNode::getCopy() const
{
HelpNode* node = new HelpNode();
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
node->setNextNode(m_nextNode->getCopy());
}