summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/multi-path-manipulator.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-03-04 21:54:38 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-03-04 21:54:38 +0000
commit91b1b6cec4776d8c2e48b54e16d698abcea6bbfe (patch)
tree1e5a2dbb736ad7cd51cbb4ef46644b92f784deed /src/ui/tool/multi-path-manipulator.cpp
parentFix for invisible blured clone elements in PDF export. (diff)
downloadinkscape-91b1b6cec4776d8c2e48b54e16d698abcea6bbfe.tar.gz
inkscape-91b1b6cec4776d8c2e48b54e16d698abcea6bbfe.zip
Clean up the unordered containers fix.
(bzr r9142)
Diffstat (limited to 'src/ui/tool/multi-path-manipulator.cpp')
-rw-r--r--src/ui/tool/multi-path-manipulator.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ui/tool/multi-path-manipulator.cpp b/src/ui/tool/multi-path-manipulator.cpp
index d86a7e9e0..b79a29437 100644
--- a/src/ui/tool/multi-path-manipulator.cpp
+++ b/src/ui/tool/multi-path-manipulator.cpp
@@ -8,7 +8,6 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
-#include "util/set-types.h"
#include <boost/shared_ptr.hpp>
#include <glib.h>
#include <glibmm/i18n.h>
@@ -24,6 +23,7 @@
#include "ui/tool/node.h"
#include "ui/tool/multi-path-manipulator.h"
#include "ui/tool/path-manipulator.h"
+#include "util/unordered-containers.h"
#ifdef USE_GNU_HASHES
namespace __gnu_cxx {
@@ -40,9 +40,18 @@ namespace Inkscape {
namespace UI {
namespace {
+
+struct hash_nodelist_iterator
+ : public std::unary_function<NodeList::iterator, std::size_t>
+{
+ std::size_t operator()(NodeList::iterator i) const {
+ return INK_HASH<NodeList::iterator::pointer>()(&*i);
+ }
+};
+
typedef std::pair<NodeList::iterator, NodeList::iterator> IterPair;
typedef std::vector<IterPair> IterPairList;
-typedef optim_set<NodeList::iterator> IterSet;
+typedef INK_UNORDERED_SET<NodeList::iterator, hash_nodelist_iterator> IterSet;
typedef std::multimap<double, IterPair> DistanceMap;
typedef std::pair<double, IterPair> DistanceMapItem;