From 9c75dad1acca2d48f26c97123875fc4ed5c60a3c Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sat, 11 Apr 2015 18:21:08 +1000 Subject: [PATCH] Why is gcc so unkind? --- apps/opencs/model/world/idadapterimp.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opencs/model/world/idadapterimp.hpp b/apps/opencs/model/world/idadapterimp.hpp index 00f7b1831d..9c4686f4e5 100644 --- a/apps/opencs/model/world/idadapterimp.hpp +++ b/apps/opencs/model/world/idadapterimp.hpp @@ -297,7 +297,7 @@ namespace CSMWorld // FIXME: how to ensure that the map entries correspond to table indicies? // WARNING: Assumed that the table view has the same order as std::map - std::map::const_iterator iter = reactions.begin(); + std::map::iterator iter = reactions.begin(); for(int i = 0; i < rowToRemove; ++i) iter++; reactions.erase(iter); @@ -351,7 +351,7 @@ namespace CSMWorld // FIXME: how to ensure that the map entries correspond to table indicies? // WARNING: Assumed that the table view has the same order as std::map - std::map::const_iterator iter = reactions.begin(); + std::map::iterator iter = reactions.begin(); for(int i = 0; i < subRowIndex; ++i) iter++;