Changeset 2506 for code/branches/presentation/src/core
- Timestamp:
- Dec 17, 2008, 6:18:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/core/Iterator.h
r2171 r2506 96 96 inline Iterator(ObjectListElement<O>* element) 97 97 { 98 this->element_ = (element) ? (ObjectListBaseElement*)element: 0;98 this->element_ = (element) ? static_cast<ObjectListBaseElement*<(element) : 0; 99 99 this->list_ = ClassIdentifier<O>::getIdentifier()->getObjects(); 100 100 this->iterator_ = this->list_->registerIterator(this); … … 108 108 inline Iterator(const ObjectListIterator<O>& other) 109 109 { 110 this->element_ = (other.element_) ? (ObjectListBaseElement*)other.element_: 0;110 this->element_ = (other.element_) ? static_cast<ObjectListBaseElement*>(other.element_) : 0; 111 111 this->list_ = ClassIdentifier<O>::getIdentifier()->getObjects(); 112 112 this->iterator_ = this->list_->registerIterator(this); … … 163 163 this->list_->unregisterIterator(this->iterator_); 164 164 165 this->element_ = (element) ? (ObjectListBaseElement*)element: 0;165 this->element_ = (element) ? static_cast<ObjectListBaseElement*>(element) : 0; 166 166 this->list_ = ClassIdentifier<O>::getIdentifier()->getObjects(); 167 167 this->iterator_ = this->list_->registerIterator(this);
Note: See TracChangeset
for help on using the changeset viewer.