From 6a91d28cf161e5a121d7bc09453e23455a109cbb Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Sun, 15 Mar 2026 11:42:31 +0100 Subject: [tree]: improve tree generation --- src/libparser/node/explodedicenode.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/libparser/node/explodedicenode.cpp') diff --git a/src/libparser/node/explodedicenode.cpp b/src/libparser/node/explodedicenode.cpp index f4c699d..bdc7e00 100644 --- a/src/libparser/node/explodedicenode.cpp +++ b/src/libparser/node/explodedicenode.cpp @@ -124,14 +124,8 @@ void ExplodeDiceNode::setValidatorList(ValidatorList* val) } QString ExplodeDiceNode::toString(bool withlabel) const { - if(withlabel) - { - return QString("%1 [label=\"ExplodeDiceNode %2\"]").arg(m_id, m_validatorList->toString()); - } - else - { - return m_id; - } + return withlabel ? QString("%1 [label=\"ExplodeDiceNode %2\"]").arg(m_id, m_validatorList->toString()) : + ExecutionNode::toString(withlabel); } qint64 ExplodeDiceNode::getPriority() const { -- cgit v1.2.3-70-g09d2