aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/diceresult.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'result/diceresult.cpp')
-rw-r--r--result/diceresult.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp
index 26b8ef8..37db727 100644
--- a/result/diceresult.cpp
+++ b/result/diceresult.cpp
@@ -56,19 +56,18 @@ DiceResult::~DiceResult()
}
QVariant DiceResult::getResult(RESULT_TYPE type)
{
-
switch (type)
{
- case SCALAR:
- return getScalarResult();
- break;
- case DICE_LIST:
- {
- return QVariant();
- break;
- }
- default:
- break;
+ case SCALAR:
+ {
+ return getScalarResult();
+ }
+ case DICE_LIST:
+ {
+ return QVariant();
+ }
+ default:
+ break;
}
return QVariant();
@@ -104,7 +103,7 @@ QString DiceResult::toString(bool wl)
}
if(wl)
{
- return QString("%3 [label=\"DiceResult Value %1 dice %2\"]").arg(getScalarResult()).arg(scalarSum.join('_')).arg(m_id);
+ return QStringLiteral("%3 [label=\"DiceResult Value %1 dice %2\"]").arg(getScalarResult()).arg(scalarSum.join('_')).arg(m_id);
}
else
{