- Timestamp:
- Nov 21, 2015, 7:05:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/overlays/hud/ChatOverlay.cc
r9667 r10821 58 58 ChatOverlay::~ChatOverlay() 59 59 { 60 for ( std::set<Timer*>::iterator it = this->timers_.begin(); it != this->timers_.end(); ++it)61 delete ( *it);60 for (const auto & elem : this->timers_) 61 delete (elem); 62 62 } 63 63 … … 92 92 this->text_->setCaption(""); 93 93 94 for ( std::list<Ogre::DisplayString>::iterator it = this->messages_.begin(); it != this->messages_.end(); ++it)94 for (auto & elem : this->messages_) 95 95 { 96 this->text_->setCaption(this->text_->getCaption() + "\n" + ( *it));96 this->text_->setCaption(this->text_->getCaption() + "\n" + (elem)); 97 97 } 98 98 }
Note: See TracChangeset
for help on using the changeset viewer.