diff --git a/lib/base/dependencygraph.cpp b/lib/base/dependencygraph.cpp index c2a7aa2904b..6e8da845589 100644 --- a/lib/base/dependencygraph.cpp +++ b/lib/base/dependencygraph.cpp @@ -6,7 +6,7 @@ using namespace icinga; std::shared_mutex DependencyGraph::m_Mutex; -std::map > DependencyGraph::m_Dependencies; +std::unordered_map> DependencyGraph::m_Dependencies; void DependencyGraph::AddDependency(Object *parent, Object *child) { diff --git a/lib/base/dependencygraph.hpp b/lib/base/dependencygraph.hpp index 5c961caf491..41d3f2e0ec7 100644 --- a/lib/base/dependencygraph.hpp +++ b/lib/base/dependencygraph.hpp @@ -5,8 +5,8 @@ #include "base/i2-base.hpp" #include "base/object.hpp" -#include #include +#include namespace icinga { @@ -26,7 +26,7 @@ class DependencyGraph DependencyGraph(); static std::shared_mutex m_Mutex; - static std::map > m_Dependencies; + static std::unordered_map> m_Dependencies; }; }