# HG changeset patch # User icelus@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1237166583 0 # Node ID be246fb3a0df839823039e58c05fe845d9d0f4d0 # Parent 044d1fead5d2cc9cbaea7781e9fb754a6789de94 Remove mutable from m_deletelisteners Remove const from addDeleteListener Remove const from removeDeleteListener diff -r 044d1fead5d2 -r be246fb3a0df engine/core/model/structures/instance.cpp --- 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::iterator itor; itor = std::find(m_deletelisteners.begin(), m_deletelisteners.end(), diff -r 044d1fead5d2 -r be246fb3a0df engine/core/model/structures/instance.h --- 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 m_deletelisteners; + std::vector m_deletelisteners; // object where instantiated from Object* m_object;