From: Gunnar Beutner Date: Tue, 30 Aug 2016 21:01:54 +0000 (+0200) Subject: Avoid unnecessary copies when using Dictionary::Pair in loops X-Git-Tag: v2.6.0~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5127a193b48cec6c7c1317fd34413dfadfd6ce0f;p=icinga2 Avoid unnecessary copies when using Dictionary::Pair in loops refs #12509 --- diff --git a/lib/base/dictionary.hpp b/lib/base/dictionary.hpp index ff2e4b569..edacaa244 100644 --- a/lib/base/dictionary.hpp +++ b/lib/base/dictionary.hpp @@ -47,7 +47,7 @@ public: typedef std::map::size_type SizeType; - typedef std::pair Pair; + typedef std::map::value_type Pair; inline Dictionary(void) { }