From 613797a3048907275ceebe29582b9fc2761b1f25 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 5 Oct 2016 09:03:55 +0200 Subject: Replace various std::map with UNORDERED_MAP + various cleanups This is part 2 for 5f084cd98d7b3326b51320455364337539710efd Other improvements: * Use the defined ItemGroupList when used * make Client::checkPrivilege const * inline some trivial functions * Add ActiveObjectMap typedef * Add SettingsEntries typedef --- src/itemgroup.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/itemgroup.h') diff --git a/src/itemgroup.h b/src/itemgroup.h index f6ae86736..f91ccc221 100644 --- a/src/itemgroup.h +++ b/src/itemgroup.h @@ -21,14 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #define ITEMGROUP_HEADER #include -#include +#include "util/cpp11_container.h" -typedef std::map ItemGroupList; +typedef UNORDERED_MAP ItemGroupList; static inline int itemgroup_get(const ItemGroupList &groups, const std::string &name) { - std::map::const_iterator i = groups.find(name); + ItemGroupList::const_iterator i = groups.find(name); if(i == groups.end()) return 0; return i->second; -- cgit v1.2.3