[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdegames/kmines/solver
From: Nicolas Hadacek <hadacek () kde ! org>
Date: 2005-08-25 20:56:48
Message-ID: 1125003408.114111.27266.nullmailer () svn ! kde ! org
[Download RAW message or body]
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())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic