summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-03-02 22:52:32 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-03-02 22:52:32 +0000
commit84fc09c9c921a31ac826c53e419d4ea61584f8a9 (patch)
tree963de2de0cd357d863d3ba104167abef31683750 /src/ui
parentWin32. Fix for Object Visible warning. (diff)
downloadinkscape-84fc09c9c921a31ac826c53e419d4ea61584f8a9.tar.gz
inkscape-84fc09c9c921a31ac826c53e419d4ea61584f8a9.zip
Use Boost unordeed containers instead of TR1 to minimize pain
when using Apple compilers. (bzr r9129)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tool/control-point-selection.h6
-rw-r--r--src/ui/tool/multi-path-manipulator.cpp6
2 files changed, 4 insertions, 8 deletions
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 <memory>
-#include <tr1/unordered_map>
-#include <tr1/unordered_set>
#include <boost/optional.hpp>
+#include <boost/unordered_set.hpp>
#include <sigc++/sigc++.h>
#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 <tr1/unordered_set>
+#include <boost/unordered_set.hpp>
#include <boost/shared_ptr.hpp>
#include <glib.h>
#include <glibmm/i18n.h>
@@ -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<NodeList::iterator, NodeList::iterator> IterPair;
typedef std::vector<IterPair> IterPairList;
-typedef std::unordered_set<NodeList::iterator> IterSet;
+typedef boost::unordered_set<NodeList::iterator> IterSet;
typedef std::multimap<double, IterPair> DistanceMap;
typedef std::pair<double, IterPair> DistanceMapItem;