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 --- include/channels.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/channels.h b/include/channels.h index e3b38a2db..37f0eb431 100644 --- a/include/channels.h +++ b/include/channels.h @@ -166,7 +166,7 @@ class CoreExport Channel : public Extensible, public InviteBase * * @return This function returns pointer to a map of User pointers (CUList*). */ - const UserMembList* GetUsers() const { return &userlist; } + const UserMembList& GetUsers() const { return userlist; } /** Returns true if the user given is on the given channel. * @param user The user to look for -- cgit v1.2.3