Make event_manager.h build on MSVC
authorPerttu Ahola <celeron55@gmail.com>
Sun, 25 Mar 2012 01:06:43 +0000 (04:06 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 25 Mar 2012 01:06:45 +0000 (04:06 +0300)
src/event_manager.h

index b33d5a29594ef89e9064425f5aa397a0236293fe..9492a2fd978281d047921f5d3d3f4c95885a9069 100644 (file)
@@ -77,26 +77,26 @@ public:
                        std::map<std::string, Dest>::iterator i = m_dest.find(type);
                        if(i != m_dest.end()){
                                std::list<FuncSpec> &funcs = i->second.funcs;
-                               std::list<FuncSpec>::iterator i = funcs.begin();
-                               while(i != funcs.end()){
-                                       bool remove = (i->f == f && (!data || i->d == data));
+                               std::list<FuncSpec>::iterator j = funcs.begin();
+                               while(j != funcs.end()){
+                                       bool remove = (j->f == f && (!data || j->d == data));
                                        if(remove)
-                                               funcs.erase(i++);
+                                               funcs.erase(j++);
                                        else
-                                               i++;
+                                               j++;
                                }
                        }
                } else{
                        for(std::map<std::string, Dest>::iterator
                                        i = m_dest.begin(); i != m_dest.end(); i++){
                                std::list<FuncSpec> &funcs = i->second.funcs;
-                               std::list<FuncSpec>::iterator i = funcs.begin();
-                               while(i != funcs.end()){
-                                       bool remove = (i->f == f && (!data || i->d == data));
+                               std::list<FuncSpec>::iterator j = funcs.begin();
+                               while(j != funcs.end()){
+                                       bool remove = (j->f == f && (!data || j->d == data));
                                        if(remove)
-                                               funcs.erase(i++);
+                                               funcs.erase(j++);
                                        else
-                                               i++;
+                                               j++;
                                }
                        }
                }