Mercurial > fife-parpg
changeset 210:be246fb3a0df
Remove mutable from m_deletelisteners
Remove const from addDeleteListener
Remove const from removeDeleteListener
author | icelus@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 16 Mar 2009 01:23:03 +0000 |
parents | 044d1fead5d2 |
children | f10a2e78a0e1 |
files | engine/core/model/structures/instance.cpp engine/core/model/structures/instance.h |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/model/structures/instance.cpp Sun Mar 15 22:20:20 2009 +0000 +++ b/engine/core/model/structures/instance.cpp Mon Mar 16 01:23:03 2009 +0000 @@ -522,10 +522,10 @@ } return TimeManager::instance()->getTime(); } - void Instance::addDeleteListener(InstanceDeleteListener *listener) const { + void Instance::addDeleteListener(InstanceDeleteListener *listener) { m_deletelisteners.push_back(listener); } - void Instance::removeDeleteListener(InstanceDeleteListener *listener) const { + void Instance::removeDeleteListener(InstanceDeleteListener *listener) { std::vector<InstanceDeleteListener*>::iterator itor; itor = std::find(m_deletelisteners.begin(), m_deletelisteners.end(),
--- a/engine/core/model/structures/instance.h Sun Mar 15 22:20:20 2009 +0000 +++ b/engine/core/model/structures/instance.h Mon Mar 16 01:23:03 2009 +0000 @@ -179,12 +179,12 @@ /** Adds new instance delete listener * @param listener to add */ - void addDeleteListener(InstanceDeleteListener* listener) const; + void addDeleteListener(InstanceDeleteListener* listener); /** Removes associated instance delete listener * @param listener to remove */ - void removeDeleteListener(InstanceDeleteListener* listener) const; + void removeDeleteListener(InstanceDeleteListener* listener); /** Gets the currently active action. This is owned by * the instance's object, so don't delete it! @@ -334,7 +334,7 @@ // bitmask stating current changes InstanceChangeInfo m_changeinfo; // listeners for deletion of the instance - mutable std::vector<InstanceDeleteListener*> m_deletelisteners; + std::vector<InstanceDeleteListener*> m_deletelisteners; // object where instantiated from Object* m_object;