From 84fc09c9c921a31ac826c53e419d4ea61584f8a9 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 2 Mar 2010 23:52:32 +0100 Subject: Use Boost unordeed containers instead of TR1 to minimize pain when using Apple compilers. (bzr r9129) --- src/ui/tool/control-point-selection.h | 6 ++---- src/ui/tool/multi-path-manipulator.cpp | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src/ui') diff --git a/src/ui/tool/control-point-selection.h b/src/ui/tool/control-point-selection.h index d982d6bec..dde9ef218 100644 --- a/src/ui/tool/control-point-selection.h +++ b/src/ui/tool/control-point-selection.h @@ -13,16 +13,14 @@ #define SEEN_UI_TOOL_NODE_SELECTION_H #include -#include -#include #include +#include #include #include <2geom/forward.h> #include <2geom/point.h> #include <2geom/rect.h> #include "display/display-forward.h" #include "util/accumulators.h" -#include "util/hash.h" #include "ui/tool/commit-events.h" #include "ui/tool/manipulator.h" @@ -42,7 +40,7 @@ class ControlPointSelection : public Manipulator, public sigc::trackable { public: ControlPointSelection(SPDesktop *d, SPCanvasGroup *th_group); ~ControlPointSelection(); - typedef std::tr1::unordered_set< SelectableControlPoint * > set_type; + typedef boost::unordered_set< SelectableControlPoint * > set_type; typedef set_type Set; // convenience alias typedef set_type::iterator iterator; diff --git a/src/ui/tool/multi-path-manipulator.cpp b/src/ui/tool/multi-path-manipulator.cpp index 5d7b520c8..f5646ac36 100644 --- a/src/ui/tool/multi-path-manipulator.cpp +++ b/src/ui/tool/multi-path-manipulator.cpp @@ -8,7 +8,7 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#include +#include #include #include #include @@ -25,15 +25,13 @@ #include "ui/tool/multi-path-manipulator.h" #include "ui/tool/path-manipulator.h" -namespace std { using namespace tr1; } - namespace Inkscape { namespace UI { namespace { typedef std::pair IterPair; typedef std::vector IterPairList; -typedef std::unordered_set IterSet; +typedef boost::unordered_set IterSet; typedef std::multimap DistanceMap; typedef std::pair DistanceMapItem; -- cgit v1.2.3