aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/dicerollernode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libparser/node/dicerollernode.cpp')
-rw-r--r--src/libparser/node/dicerollernode.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/libparser/node/dicerollernode.cpp b/src/libparser/node/dicerollernode.cpp
index 8ef0164..f3e0887 100644
--- a/src/libparser/node/dicerollernode.cpp
+++ b/src/libparser/node/dicerollernode.cpp
@@ -66,16 +66,10 @@ std::pair<qint64, qint64> DiceRollerNode::getRange() const
{
return std::make_pair(m_min, m_max);
}
-QString DiceRollerNode::toString(bool wl) const
+QString DiceRollerNode::toString(bool withlabel) const
{
- if(wl)
- {
- return QString("%1 [label=\"DiceRollerNode faces: %2\"]").arg(m_id).arg(getFaces());
- }
- else
- {
- return m_id;
- }
+ return withlabel ? QString("%1 [label=\"DiceRollerNode faces: %2\"]").arg(m_id).arg(getFaces()) :
+ ExecutionNode::toString(withlabel);
}
qint64 DiceRollerNode::getPriority() const
{