Changeset 10821 for code/branches/cpp11_v2/src/modules/docking/Dock.cc
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/docking/Dock.cc
r10765 r10821 327 327 const DockingEffect* Dock::getEffect(unsigned int i) const 328 328 { 329 for ( std::list<DockingEffect*>::const_iterator effect = this->effects_.begin(); effect != this->effects_.end(); ++effect)329 for (const auto & elem : this->effects_) 330 330 { 331 331 if(i == 0) 332 return *effect;332 return elem; 333 333 i--; 334 334 } … … 346 346 const DockingAnimation* Dock::getAnimation(unsigned int i) const 347 347 { 348 for ( std::list<DockingAnimation*>::const_iterator animation = this->animations_.begin(); animation != this->animations_.end(); ++animation)348 for (const auto & elem : this->animations_) 349 349 { 350 350 if(i == 0) 351 return *animation;351 return elem; 352 352 i--; 353 353 }
Note: See TracChangeset
for help on using the changeset viewer.