summaryrefslogtreecommitdiff
path: root/include/channels.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-14 16:04:38 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-14 16:04:38 +0200
commit173bc63cb59bbf19e73d1b823e3e9423c9f79860 (patch)
tree7af13bf029e8f5c7d2792de0e55c2b1168c549fb /include/channels.h
parent7045a0d4ce7b4f2752c5496851a6319ea04137b6 (diff)
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'include/channels.h')
-rw-r--r--include/channels.h2
1 files changed, 1 insertions, 1 deletions
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<Channel>
*
* @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