From ddffc1a8ab9e3357a8e0350ff08b5ef1a9fb2651 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 19 Oct 2018 00:53:43 +0200 Subject: Remove util/unordered-containers.h aliases. --- src/ui/tool/control-point-selection.h | 9 +++++---- src/ui/tool/multi-path-manipulator.cpp | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/ui') diff --git a/src/ui/tool/control-point-selection.h b/src/ui/tool/control-point-selection.h index 192e273e0..046b98649 100644 --- a/src/ui/tool/control-point-selection.h +++ b/src/ui/tool/control-point-selection.h @@ -14,13 +14,14 @@ #include #include +#include +#include #include #include #include #include <2geom/forward.h> #include <2geom/point.h> #include <2geom/rect.h> -#include "util/unordered-containers.h" #include "ui/tool/commit-events.h" #include "ui/tool/manipulator.h" #include "snap-candidate.h" @@ -42,7 +43,7 @@ class ControlPointSelection : public Manipulator, public sigc::trackable { public: ControlPointSelection(SPDesktop *d, SPCanvasGroup *th_group); ~ControlPointSelection() override; - typedef INK_UNORDERED_SET set_type; + typedef std::unordered_set set_type; typedef set_type Set; // convenience alias typedef set_type::iterator iterator; @@ -144,8 +145,8 @@ private: set_type _points; set_type _all_points; - INK_UNORDERED_MAP _original_positions; - INK_UNORDERED_MAP _last_trans; + std::unordered_map _original_positions; + std::unordered_map _last_trans; boost::optional _rot_radius; boost::optional _mouseover_rot_radius; Geom::OptRect _bounds; diff --git a/src/ui/tool/multi-path-manipulator.cpp b/src/ui/tool/multi-path-manipulator.cpp index dd700d9b3..a92b129e9 100644 --- a/src/ui/tool/multi-path-manipulator.cpp +++ b/src/ui/tool/multi-path-manipulator.cpp @@ -10,6 +10,8 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include + #include #include @@ -39,13 +41,13 @@ struct hash_nodelist_iterator : public std::unary_function { std::size_t operator()(NodeList::iterator i) const { - return INK_HASH()(&*i); + return std::hash()(&*i); } }; typedef std::pair IterPair; typedef std::vector IterPairList; -typedef INK_UNORDERED_SET IterSet; +typedef std::unordered_set IterSet; typedef std::multimap DistanceMap; typedef std::pair DistanceMapItem; -- cgit v1.2.3