- Timestamp:
- Nov 21, 2015, 7:05:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/util/output/OutputManager.cc
r10768 r10821 132 132 vectorize(message, '\n', &lines); 133 133 134 for ( size_t i = 0; i < this->listeners_.size(); ++i)135 this->listeners_[i]->unfilteredOutput(level, context, lines);134 for (auto & elem : this->listeners_) 135 elem->unfilteredOutput(level, context, lines); 136 136 } 137 137 … … 179 179 { 180 180 int mask = 0; 181 for ( size_t i = 0; i < this->listeners_.size(); ++i)182 mask |= this->listeners_[i]->getLevelMask();181 for (auto & elem : this->listeners_) 182 mask |= elem->getLevelMask(); 183 183 this->combinedLevelMask_ = static_cast<OutputLevel>(mask); 184 184 } … … 190 190 { 191 191 int mask = 0; 192 for ( size_t i = 0; i < this->listeners_.size(); ++i)193 mask |= this->listeners_[i]->getAdditionalContextsLevelMask();192 for (auto & elem : this->listeners_) 193 mask |= elem->getAdditionalContextsLevelMask(); 194 194 this->combinedAdditionalContextsLevelMask_ = static_cast<OutputLevel>(mask); 195 195 } … … 201 201 { 202 202 this->combinedAdditionalContextsMask_ = 0; 203 for ( size_t i = 0; i < this->listeners_.size(); ++i)204 this->combinedAdditionalContextsMask_ |= this->listeners_[i]->getAdditionalContextsMask();203 for (auto & elem : this->listeners_) 204 this->combinedAdditionalContextsMask_ |= elem->getAdditionalContextsMask(); 205 205 } 206 206
Note: See TracChangeset
for help on using the changeset viewer.