diff options
Diffstat (limited to 'src/channelmanager.cpp')
-rw-r--r-- | src/channelmanager.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/channelmanager.cpp b/src/channelmanager.cpp index 31f87010e..48590891b 100644 --- a/src/channelmanager.cpp +++ b/src/channelmanager.cpp @@ -41,10 +41,7 @@ ChannelManager::~ChannelManager() Channel *ChannelManager::findById(const int id) const { Channel *channel = nullptr; - for (std::list<Channel*>::const_iterator itr = mChannels.begin(), - end = mChannels.end(); - itr != end; - ++itr) + FOR_EACH (std::list<Channel*>::const_iterator, itr, mChannels) { Channel *const c = (*itr); if (!c) @@ -63,10 +60,7 @@ Channel *ChannelManager::findByName(const std::string &name) const Channel *channel = nullptr; if (!name.empty()) { - for (std::list<Channel*>::const_iterator itr = mChannels.begin(), - end = mChannels.end(); - itr != end; - ++itr) + FOR_EACH (std::list<Channel*>::const_iterator, itr, mChannels) { Channel *const c = (*itr); if (!c) |