diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-14 16:04:38 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-14 16:04:38 +0200 |
commit | 173bc63cb59bbf19e73d1b823e3e9423c9f79860 (patch) | |
tree | 7af13bf029e8f5c7d2792de0e55c2b1168c549fb /src/modules/m_repeat.cpp | |
parent | 7045a0d4ce7b4f2752c5496851a6319ea04137b6 (diff) |
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/modules/m_repeat.cpp')
-rw-r--r-- | src/modules/m_repeat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp index d8fccbffc..6ad3a6aa7 100644 --- a/src/modules/m_repeat.cpp +++ b/src/modules/m_repeat.cpp @@ -129,8 +129,8 @@ class RepeatMode : public ParamMode<RepeatMode, SimpleExtItem<ChannelSettings> > void OnUnset(User* source, Channel* chan) { // Unset the per-membership extension when the mode is removed - const UserMembList* users = chan->GetUsers(); - for (UserMembCIter i = users->begin(); i != users->end(); ++i) + const UserMembList& users = chan->GetUsers(); + for (UserMembCIter i = users.begin(); i != users.end(); ++i) MemberInfoExt.unset(i->second); } |