diff options
author | Max Kellermann <max@duempel.org> | 2014-06-10 18:58:02 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-06-10 23:21:09 +0200 |
commit | 507d8fdc6f63800cd022d77fbe2ccbdac097759f (patch) | |
tree | ba324cbcc0deb984acf3df73ebea5786624784fe | |
parent | 31e29e62f48b3fcc8552472a8beb8bd1a5f06d5f (diff) | |
download | mpd-507d8fdc6f63800cd022d77fbe2ccbdac097759f.tar.gz mpd-507d8fdc6f63800cd022d77fbe2ccbdac097759f.tar.xz mpd-507d8fdc6f63800cd022d77fbe2ccbdac097759f.zip |
ClientList: add typedef List
-rw-r--r-- | src/client/ClientList.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/ClientList.hxx b/src/client/ClientList.hxx index 35022fbf1..4d9a96dcb 100644 --- a/src/client/ClientList.hxx +++ b/src/client/ClientList.hxx @@ -25,10 +25,12 @@ class Client; class ClientList { + typedef std::list<Client *> List; + const unsigned max_size; unsigned size; - std::list<Client *> list; + List list; public: ClientList(unsigned _max_size) @@ -37,11 +39,11 @@ public: CloseAll(); } - std::list<Client *>::iterator begin() { + List::iterator begin() { return list.begin(); } - std::list<Client *>::iterator end() { + List::iterator end() { return list.end(); } |