Changeset 10916 for code/branches/cpp11_v2/src/modules/objects/eventsystem
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/objects/eventsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/objects/eventsystem/EventDispatcher.cc
r10821 r10916 45 45 { 46 46 if (this->isInitialized()) 47 for ( auto & elem: this->targets_)48 (elem)->destroy();47 for (BaseObject* target : this->targets_) 48 target->destroy(); 49 49 } 50 50 … … 61 61 void EventDispatcher::processEvent(Event& event) 62 62 { 63 for ( auto & elem: this->targets_)64 (elem)->processEvent(event);63 for (BaseObject* target : this->targets_) 64 target->processEvent(event); 65 65 } 66 66 … … 73 73 { 74 74 unsigned int i = 0; 75 for ( const auto & elem: this->targets_)75 for (BaseObject* target : this->targets_) 76 76 { 77 77 if (i == index) 78 return (elem);78 return target; 79 79 ++i; 80 80 } -
code/branches/cpp11_v2/src/modules/objects/eventsystem/EventFilter.cc
r10821 r10916 96 96 { 97 97 unsigned int i = 0; 98 for ( const auto & elem: this->sources_)98 for (BaseObject* source : this->sources_) 99 99 { 100 100 if (i == index) 101 return (elem);101 return source; 102 102 ++i; 103 103 } … … 113 113 { 114 114 unsigned int i = 0; 115 for ( const auto & elem: this->names_)115 for (EventName* name : this->names_) 116 116 { 117 117 if (i == index) 118 return (elem);118 return name; 119 119 ++i; 120 120 }
Note: See TracChangeset
for help on using the changeset viewer.