summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/control-point-selection.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-01-20 19:31:57 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-01-20 19:31:57 +0000
commit906f78949458732f138e4e2b79843c75e9d52f87 (patch)
tree2643ad24eb96a1999f29c7eb606992b4ffcc93eb /src/ui/tool/control-point-selection.h
parentMake Ctrl+Alt+click delete nodes. (diff)
downloadinkscape-906f78949458732f138e4e2b79843c75e9d52f87.tar.gz
inkscape-906f78949458732f138e4e2b79843c75e9d52f87.zip
Go back to using TR1 unordered containers to fix warnings. Add configure
code to detect the broken header and display Wiki page URL. (bzr r9006)
Diffstat (limited to 'src/ui/tool/control-point-selection.h')
-rw-r--r--src/ui/tool/control-point-selection.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/ui/tool/control-point-selection.h b/src/ui/tool/control-point-selection.h
index dce685575..54d724f00 100644
--- a/src/ui/tool/control-point-selection.h
+++ b/src/ui/tool/control-point-selection.h
@@ -13,11 +13,8 @@
#define SEEN_UI_TOOL_NODE_SELECTION_H
#include <memory>
-// those are broken beyond hope on OSX.
-//#include <tr1/unordered_map>
-//#include <tr1/unordered_set>
-#include <ext/hash_map>
-#include <ext/hash_set>
+#include <tr1/unordered_map>
+#include <tr1/unordered_set>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/optional.hpp>
@@ -30,8 +27,6 @@
#include "ui/tool/commit-events.h"
#include "ui/tool/manipulator.h"
-namespace std { using namespace __gnu_cxx; }
-
class SPDesktop;
namespace Inkscape {
@@ -41,15 +36,6 @@ class SelectableControlPoint;
}
}
-namespace __gnu_cxx {
-template<>
-struct hash<Inkscape::UI::SelectableControlPoint*> {
- size_t operator()(Inkscape::UI::SelectableControlPoint *p) const {
- return reinterpret_cast<size_t>(p);
- }
-};
-} // namespace __gnu_cxx
-
namespace Inkscape {
namespace UI {
@@ -58,9 +44,9 @@ public:
ControlPointSelection(SPDesktop *d, SPCanvasGroup *th_group);
~ControlPointSelection();
typedef std::list<sigc::connection> connlist_type;
- typedef std::hash_map< SelectableControlPoint *,
+ typedef std::tr1::unordered_map< SelectableControlPoint *,
boost::shared_ptr<connlist_type> > map_type;
- typedef std::hash_set< SelectableControlPoint * > set_type;
+ typedef std::tr1::unordered_set< SelectableControlPoint * > set_type;
typedef set_type Set; // convenience alias
typedef map_type::iterator iterator;