summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authorVincent <vincent.leung60@gmail.com>2014-12-07 21:41:42 +0100
committerVincent <vincent.leung60@gmail.com>2014-12-07 21:41:42 +0100
commit8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5 (patch)
tree2f011e702fe85b6372445a157e15c48894f2ed3e /src/Server.cpp
parentremoved GetUsernames() from World (diff)
downloadcuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar
cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.gz
cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.bz2
cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.lz
cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.xz
cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.zst
cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.zip
Diffstat (limited to 'src/Server.cpp')
-rw-r--r--src/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index ed02500ff..15c9521b9 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -308,9 +308,9 @@ std::list<AString> cServer::GetUsernames()
{
std::list<AString> usernames;
cCSLock Lock(m_CSClients);
- for (ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr)
+ for (auto client : m_Clients)
{
- AString username = (*itr)->GetUsername();
+ AString username = (client)->GetUsername();
usernames.insert(usernames.begin(),username);
}
return usernames;