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_spanningtree | |
parent | 7045a0d4ce7b4f2752c5496851a6319ea04137b6 (diff) |
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/netburst.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index f96e47d60..f583a9d8f 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -167,9 +167,9 @@ void TreeSocket::SendServers(TreeServer* Current, TreeServer* s) void TreeSocket::SendFJoins(Channel* c) { CommandFJoin::Builder fjoin(c); - const UserMembList *ulist = c->GetUsers(); - for (UserMembCIter i = ulist->begin(); i != ulist->end(); ++i) + const UserMembList& ulist = c->GetUsers(); + for (UserMembCIter i = ulist.begin(); i != ulist.end(); ++i) { Membership* memb = i->second; if (!fjoin.has_room(memb)) diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index d6dccba14..254b50dcc 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -166,9 +166,8 @@ void SpanningTreeUtilities::GetListOfServersForChannel(Channel* c, TreeSocketSet minrank = mh->GetPrefixRank(); } - const UserMembList *ulist = c->GetUsers(); - - for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++) + const UserMembList& ulist = c->GetUsers(); + for (UserMembCIter i = ulist.begin(); i != ulist.end(); ++i) { if (IS_LOCAL(i->first)) continue; |