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/coremods/core_who.cpp | |
parent | 7045a0d4ce7b4f2752c5496851a6319ea04137b6 (diff) |
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/coremods/core_who.cpp')
-rw-r--r-- | src/coremods/core_who.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp index 6f4bc088e..d39c07520 100644 --- a/src/coremods/core_who.cpp +++ b/src/coremods/core_who.cpp @@ -325,9 +325,8 @@ CmdResult CommandWho::Handle (const std::vector<std::string>& parameters, User * bool inside = ch->HasUser(user); /* who on a channel. */ - const UserMembList *cu = ch->GetUsers(); - - for (UserMembCIter i = cu->begin(); i != cu->end(); i++) + const UserMembList& cu = ch->GetUsers(); + for (UserMembCIter i = cu.begin(); i != cu.end(); ++i) { /* None of this applies if we WHO ourselves */ if (user != i->first) |