diff options
Diffstat (limited to 'result/diceresult.cpp')
| -rw-r--r-- | result/diceresult.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp index ffa5d02..74aa4e1 100644 --- a/result/diceresult.cpp +++ b/result/diceresult.cpp @@ -46,19 +46,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(); |