[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ksudoku/frameworks] src/generator: Fix build with GCC6.
From:       Andrius_Å tikonas <null () kde ! org>
Date:       2017-04-30 14:48:49
Message-ID: E1d4q9Z-0001ly-5C () code ! kde ! org
[Download RAW message or body]

Git commit b7670c45d30545942eac77250c4161118635f2c1 by Andrius Å tikonas.
Committed on 30/04/2017 at 14:48.
Pushed by stikonas into branch 'frameworks'.

Fix build with GCC6.

M  +1    -1    src/generator/cagegenerator.cpp

https://commits.kde.org/ksudoku/b7670c45d30545942eac77250c4161118635f2c1

diff --git a/src/generator/cagegenerator.cpp b/src/generator/cagegenerator.cpp
index 3bf2cbe..a73a6c0 100644
--- a/src/generator/cagegenerator.cpp
+++ b/src/generator/cagegenerator.cpp
@@ -371,7 +371,7 @@ QVector<int> CageGenerator::makeOneCage (int seedCell, int requiredSize)
 
 	// Pick a neighbour to be added to the cage.
 	index = -1;
-	for (unb : qAsConst(unusedNeighbours)) {
+	for (const int unb : qAsConst(unusedNeighbours)) {
             flags = mNeighbourFlags.at (unb);
 	    if (flags == 15) {
 		// Choose a cell that has been surrounded and isolated.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic