From 48071e171de41a23197c7328ba038331a936e0eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Jan 2013 15:25:24 +0300 Subject: Replace for to FOR_EACH in some classes. --- src/maplayer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/maplayer.cpp') diff --git a/src/maplayer.cpp b/src/maplayer.cpp index 7f952060d..dcc9621d2 100644 --- a/src/maplayer.cpp +++ b/src/maplayer.cpp @@ -618,8 +618,7 @@ void SpecialLayer::setTile(const int x, const int y, const int type) void SpecialLayer::addRoad(Path road) { - for (Path::const_iterator i = road.begin(), i_end = road.end(); - i != i_end; ++i) + FOR_EACH (Path::const_iterator, i, road) { const Position &pos = (*i); MapItem *item = getTile(pos.x, pos.y); -- cgit v1.2.3-70-g09d2