X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fevent_manager.h;h=f926922f5c001298a43a9486d5aeae306e880a6a;hb=70ea5d552e283bd5bce3278cbf3819bd87ba2602;hp=c2e9f792f17be343ff3ee0e2e2ac3e81316b9b60;hpb=497ff1ecd64c8908f988e15ca879824f2781e3fd;p=dragonfireclient.git diff --git a/src/event_manager.h b/src/event_manager.h index c2e9f792f..f926922f5 100644 --- a/src/event_manager.h +++ b/src/event_manager.h @@ -1,6 +1,6 @@ /* Minetest -Copyright (C) 2012 celeron55, Perttu Ahola +Copyright (C) 2013 celeron55, Perttu Ahola This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -53,7 +53,7 @@ class EventManager: public MtEventManager if(i != m_dest.end()){ std::list &funcs = i->second.funcs; for(std::list::iterator i = funcs.begin(); - i != funcs.end(); i++){ + i != funcs.end(); ++i){ (*(i->f))(e, i->d); } } @@ -83,12 +83,12 @@ class EventManager: public MtEventManager if(remove) funcs.erase(j++); else - j++; + ++j; } } } else{ for(std::map::iterator - i = m_dest.begin(); i != m_dest.end(); i++){ + i = m_dest.begin(); i != m_dest.end(); ++i){ std::list &funcs = i->second.funcs; std::list::iterator j = funcs.begin(); while(j != funcs.end()){ @@ -96,7 +96,7 @@ class EventManager: public MtEventManager if(remove) funcs.erase(j++); else - j++; + ++j; } } }