From 0b465f48da16c2e4f634a53892705c7ecc885ece Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Fri, 23 Jun 2017 15:37:34 +0200 Subject: use unordered_map for id->obj maps Signed-off-by: Marcus Fritzsch --- src/wayland.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/wayland.hpp') diff --git a/src/wayland.hpp b/src/wayland.hpp index da3cc29..df9b68e 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -6,7 +6,7 @@ #include "util.h" #include -#include +#include #include #include @@ -69,7 +69,7 @@ struct display { // |___/ |___/ struct registry : public wayland_proxy { typedef std::function binder; - std::map bindings; + std::unordered_map bindings; registry(struct wl_display *d); ~registry(); @@ -298,9 +298,9 @@ struct screen : public wayland_proxy, // \___\___/|_| |_|\__|_| \___/|_|_|\___|_| // struct controller : public wayland_proxy { - std::map> surfaces; - std::map> layers; - std::map> screens; + std::unordered_map> surfaces; + std::unordered_map> layers; + std::unordered_map> screens; typedef std::pair> name_task_pair; -- cgit 1.2.3-korg