From 5f084cd98d7b3326b51320455364337539710efd Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 5 Oct 2016 00:13:10 +0200 Subject: Make some maps unordered to improve performance * This permit to improve performance on C++11 builds * use some existing typedefs in tools maps * minor code style changes --- src/settings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/settings.h') diff --git a/src/settings.h b/src/settings.h index 0af861a58..c6c044779 100644 --- a/src/settings.h +++ b/src/settings.h @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/string.h" #include "threading/mutex.h" #include -#include +#include "util/cpp11_container.h" #include #include @@ -45,7 +45,7 @@ typedef std::vector< > > SettingsCallbackList; -typedef std::map SettingsCallbackMap; +typedef UNORDERED_MAP SettingsCallbackMap; enum ValueType { VALUETYPE_STRING, -- cgit v1.2.3