summaryrefslogtreecommitdiff
path: root/src/channelmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channelmanager.cpp')
-rw-r--r--src/channelmanager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/channelmanager.cpp b/src/channelmanager.cpp
index e4d9601e3..4e95e6e3a 100644
--- a/src/channelmanager.cpp
+++ b/src/channelmanager.cpp
@@ -38,15 +38,15 @@ ChannelManager::~ChannelManager()
mChannels.clear();
}
-Channel *ChannelManager::findById(int id) const
+Channel *ChannelManager::findById(const int id) const
{
Channel *channel = nullptr;
for (std::list<Channel*>::const_iterator itr = mChannels.begin(),
- end = mChannels.end();
+ end = mChannels.end();
itr != end;
++itr)
{
- Channel *c = (*itr);
+ Channel *const c = (*itr);
if (!c)
continue;
if (c->getId() == id)
@@ -64,11 +64,11 @@ Channel *ChannelManager::findByName(const std::string &name) const
if (!name.empty())
{
for (std::list<Channel*>::const_iterator itr = mChannels.begin(),
- end = mChannels.end();
+ end = mChannels.end();
itr != end;
++itr)
{
- Channel *c = (*itr);
+ Channel *const c = (*itr);
if (!c)
continue;
if (c->getName() == name)
@@ -81,12 +81,12 @@ Channel *ChannelManager::findByName(const std::string &name) const
return channel;
}
-void ChannelManager::addChannel(Channel *channel)
+void ChannelManager::addChannel(Channel *const channel)
{
mChannels.push_back(channel);
}
-void ChannelManager::removeChannel(Channel *channel)
+void ChannelManager::removeChannel(Channel *const channel)
{
mChannels.remove(channel);
delete channel;