diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dice/tst_dice.cpp | 4 | ||||
| -rw-r--r-- | tests/fuzzer/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 3 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()); diff --git a/tests/fuzzer/CMakeLists.txt b/tests/fuzzer/CMakeLists.txt index c6d94ca..a3d4e7c 100644 --- a/tests/fuzzer/CMakeLists.txt +++ b/tests/fuzzer/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.16) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra") set(CMAKE_AUTOMOC ON) |