From 173bc63cb59bbf19e73d1b823e3e9423c9f79860 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 14 Jul 2014 16:04:38 +0200 Subject: Change return type of Channel::GetUsers() to reference from pointer as it is never NULL --- src/modules/m_check.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_check.cpp') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 35901f8d5..a2c0b2e2c 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -224,10 +224,10 @@ class CommandCheck : public Command /* now the ugly bit, spool current members of a channel. :| */ - const UserMembList *ulist= targchan->GetUsers(); + const UserMembList& ulist = targchan->GetUsers(); /* note that unlike /names, we do NOT check +i vs in the channel */ - for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++) + for (UserMembCIter i = ulist.begin(); i != ulist.end(); ++i) { /* * Unlike Asuka, I define a clone as coming from the same host. --w00t -- cgit v1.2.3