aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/dice/tst_dice.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2022-03-28 23:23:30 +0200
committerRenaud G <renaud@rolisteam.org>2022-04-13 15:40:42 +0200
commitc1dca21057dd81c66bf1e164f401b161c2d883ea (patch)
treed2813bd30c81c610c1509809eb8a8c782c0568ed /tests/dice/tst_dice.cpp
parent70c279ab847883046ef0a951e4d2ccbf6170d19a (diff)
downloadOneRoll-c1dca21057dd81c66bf1e164f401b161c2d883ea.tar.gz
OneRoll-c1dca21057dd81c66bf1e164f401b161c2d883ea.zip
update to new cmake
Diffstat (limited to 'tests/dice/tst_dice.cpp')
-rw-r--r--tests/dice/tst_dice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dice/tst_dice.cpp b/tests/dice/tst_dice.cpp
index c3168f4..9c9085a 100644
--- a/tests/dice/tst_dice.cpp
+++ b/tests/dice/tst_dice.cpp
@@ -492,7 +492,7 @@ void TestDice::scopeDF()
m_diceParser->start();
auto results= m_diceParser->scalarResultsFromEachInstruction();
- for(auto result : results)
+ for(auto const& result : qAsConst(results))
QVERIFY(result >= min && result <= max);
}
@@ -556,7 +556,7 @@ void TestDice::severalInstruction()
results << 3;
int i= 0;
- for(auto cmd : commands)
+ for(auto const& cmd : qAsConst(commands))
{
auto test= m_diceParser->parseLine(cmd);
QVERIFY2(test, cmd.toStdString().c_str());