aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/helpnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libparser/node/helpnode.cpp')
-rw-r--r--src/libparser/node/helpnode.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libparser/node/helpnode.cpp b/src/libparser/node/helpnode.cpp
index e8edc9c..7716ce6 100644
--- a/src/libparser/node/helpnode.cpp
+++ b/src/libparser/node/helpnode.cpp
@@ -51,14 +51,9 @@ void HelpNode::run(ExecutionNode* previous)
}
QString HelpNode::toString(bool wl) const
{
- if(wl)
- {
- return QString("%1 [label=\"%3 : %2\"]").arg(m_id, m_path, tr("Rolisteam Dice Parser:\nFull documentation at"));
- }
- else
- {
- return m_id;
- }
+ return wl ? QString("%1 [label=\"%3 : %2\"]")
+ .arg(m_id, m_path, tr("Rolisteam Dice Parser:\nFull documentation at")) :
+ ExecutionNode::toString(wl);
}
qint64 HelpNode::getPriority() const