diff options
| author | 2019-07-29 20:35:52 +0000 | |
|---|---|---|
| committer | 2019-07-29 20:35:52 +0000 | |
| commit | 1a902d383eef1e042d4462cd07b9384fcdf4d118 (patch) | |
| tree | 766b8ab720fa5da11730d2fc2388f51b9d14de49 /result/scalarresult.cpp | |
| parent | f5906125576a8323a731c9456ce3dfc53b67ef59 (diff) | |
| parent | 0d4b68221bda594cc695d216dfa21306ddb69c85 (diff) | |
| download | OneRoll-1a902d383eef1e042d4462cd07b9384fcdf4d118.tar.gz OneRoll-1a902d383eef1e042d4462cd07b9384fcdf4d118.zip | |
Merge branch 'liberation' into 'master'
Add fuzzer on the DiceParser
See merge request kde/rolisteam-diceparser!2
Diffstat (limited to 'result/scalarresult.cpp')
| -rw-r--r-- | result/scalarresult.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/result/scalarresult.cpp b/result/scalarresult.cpp index 089c4b8..d901c08 100644 --- a/result/scalarresult.cpp +++ b/result/scalarresult.cpp @@ -23,16 +23,16 @@ ScalarResult::ScalarResult() { - m_resultTypes= Result::SCALAR; + m_resultTypes= static_cast<int>(Dice::RESULT_TYPE::SCALAR); } void ScalarResult::setValue(qreal i) { m_value= i; } -QVariant ScalarResult::getResult(Result::RESULT_TYPE type) +QVariant ScalarResult::getResult(Dice::RESULT_TYPE type) { - if(SCALAR == type) + if(Dice::RESULT_TYPE::SCALAR == type) { return m_value; } |