comparison engine/core/model/structures/instance.cpp @ 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 852da06fc922
comparison
equal deleted inserted replaced
209:044d1fead5d2 210:be246fb3a0df
520 return map->getTimeProvider()->getGameTime(); 520 return map->getTimeProvider()->getGameTime();
521 } 521 }
522 } 522 }
523 return TimeManager::instance()->getTime(); 523 return TimeManager::instance()->getTime();
524 } 524 }
525 void Instance::addDeleteListener(InstanceDeleteListener *listener) const { 525 void Instance::addDeleteListener(InstanceDeleteListener *listener) {
526 m_deletelisteners.push_back(listener); 526 m_deletelisteners.push_back(listener);
527 } 527 }
528 void Instance::removeDeleteListener(InstanceDeleteListener *listener) const { 528 void Instance::removeDeleteListener(InstanceDeleteListener *listener) {
529 std::vector<InstanceDeleteListener*>::iterator itor; 529 std::vector<InstanceDeleteListener*>::iterator itor;
530 itor = std::find(m_deletelisteners.begin(), 530 itor = std::find(m_deletelisteners.begin(),
531 m_deletelisteners.end(), 531 m_deletelisteners.end(),
532 listener); 532 listener);
533 if(itor != m_deletelisteners.end()) { 533 if(itor != m_deletelisteners.end()) {