From kde-commits Thu Aug 25 20:56:48 2005 From: Nicolas Hadacek Date: Thu, 25 Aug 2005 20:56:48 +0000 To: kde-commits Subject: branches/KDE/3.5/kdegames/kmines/solver Message-Id: <1125003408.114111.27266.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112500342617133 SVN commit 453318 by hadacek: fix c++ constness (bug #111304) M +3 -4 adviseFast.cpp --- branches/KDE/3.5/kdegames/kmines/solver/adviseFast.cpp #453317:453318 @@ -124,7 +124,7 @@ autorevealed.insert(point); affectedFacts->insert(autorevealed.begin(), autorevealed.end()); - CoordSet::iterator i, j; + CoordSet::const_iterator i; for(i=autorevealed.begin(); i!=autorevealed.end(); ++i) { // I still think that each poing will belong to @@ -134,7 +134,7 @@ CoordSet const &affF = _containingFacts[*i]; affectedFacts->insert( affF.begin(), affF.end()); - for( j=affF.begin(); + for(CoordSet::const_iterator j=affF.begin(); j!=affF.end(); ++j) { @@ -165,8 +165,7 @@ if(_containingFacts.count(point)){ CoordSet const &affF = _containingFacts[point]; affectedFacts->insert(affF.begin(), affF.end()); - CoordSet::iterator i; - for(i=affF.begin(); i!=affF.end(); ++i){ + for(CoordSet::const_iterator i=affF.begin(); i!=affF.end(); ++i){ (*this)[*i].pointSet.erase(point); (*this)[*i].mines--; if((*this)[*i].pointSet.empty())