diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-24 21:50:11 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-24 21:50:11 +0200 |
commit | 9f962123be30da94add3f966bb46962f8bfdea88 (patch) | |
tree | ed1a210da3d5ba5d8d7d0807dd4e6ed4de4172f4 /src/Common/UserLists/Util.cpp | |
parent | 1cf531a5949cad1f68575188cf00d147478e029c (diff) | |
download | mad-9f962123be30da94add3f966bb46962f8bfdea88.tar mad-9f962123be30da94add3f966bb46962f8bfdea88.zip |
UserList: Encapsulate list
Diffstat (limited to 'src/Common/UserLists/Util.cpp')
-rw-r--r-- | src/Common/UserLists/Util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/UserLists/Util.cpp b/src/Common/UserLists/Util.cpp index 812c2c7..3c15956 100644 --- a/src/Common/UserLists/Util.cpp +++ b/src/Common/UserLists/Util.cpp @@ -39,7 +39,7 @@ UserListEntry Util::deserializeUserListEntry(XmlData::List::const_iterator entry std::set<std::string> details = entry->getChildren(); for(std::set<std::string>::iterator detail = details.begin(); detail != details.end(); ++detail) { - if(*detail == "user" || *detail == "group") + if(*detail == "name" || *detail == "group") continue; user.setDetail(*detail, entry->get<const std::string&>(*detail)); @@ -62,7 +62,7 @@ boost::shared_ptr<UserList> Util::deserializeUserList(const XmlData *data) { if(userList) { for(XmlData::List::const_iterator user = userList->begin(); user != userList->end(); ++user) - users->push_back(deserializeUserListEntry(user)); + users->addUser(deserializeUserListEntry(user)); } return users; |