Commit eae9aceb authored by Andrius Štikonas's avatar Andrius Štikonas

Port away from Q_FOREACH.

parent c6b4a4d6
project(kreversi)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.15.0")
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
......
......@@ -151,7 +151,7 @@ int KReversiGame::undo()
setChipColor(KReversiMove(NoColor, move.row, move.col));
// and change back the color of the rest chips
foreach(const KReversiMove & pos, lastUndo) {
for (const KReversiMove & pos : qAsConst(lastUndo)) {
ChipColor opponentColor = Utils::opponentColorFor(m_cells[pos.row][pos.col]);
setChipColor(KReversiMove(opponentColor, pos.row, pos.col));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment