diff options
| author | Jan Lingscheid <jan.linscheid@auticon.de> | 2017-10-17 06:31:32 +0000 |
|---|---|---|
| committer | Jan Lingscheid <jan.lingscheid@auticon.de> | 2017-10-17 08:55:01 +0000 |
| commit | e1cb749aab3c773073b1adde1b4cd07b2a6ce93e (patch) | |
| tree | d949d760d817874ccdbef766661643c1f98822f2 /src/ui/tool/node.h | |
| parent | Replace boost::scoped_ptr (diff) | |
| download | inkscape-e1cb749aab3c773073b1adde1b4cd07b2a6ce93e.tar.gz inkscape-e1cb749aab3c773073b1adde1b4cd07b2a6ce93e.zip | |
Replace boost::shared_ptr
Replace boost::shared_ptr with C++11 smartpointer and remove the boost/shared_ptr.hpp header.
Diffstat (limited to 'src/ui/tool/node.h')
| -rw-r--r-- | src/ui/tool/node.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/tool/node.h b/src/ui/tool/node.h index a05f0e3b9..2964b66ca 100644 --- a/src/ui/tool/node.h +++ b/src/ui/tool/node.h @@ -22,8 +22,6 @@ #include <cstddef> #include <functional> -#include <boost/enable_shared_from_this.hpp> -#include <boost/shared_ptr.hpp> #include "ui/tool/selectable-control-point.h" #include "snapped-point.h" #include "ui/tool/node-types.h" @@ -357,7 +355,7 @@ private: friend class NodeList; }; -class NodeList : ListNode, boost::noncopyable, public boost::enable_shared_from_this<NodeList> { +class NodeList : ListNode, boost::noncopyable { public: typedef std::size_t size_type; typedef Node &reference; @@ -465,9 +463,9 @@ private: * List of node lists. Represents an editable path. * Editable path composed of one or more subpaths. */ -class SubpathList : public std::list< boost::shared_ptr<NodeList> > { +class SubpathList : public std::list< std::shared_ptr<NodeList> > { public: - typedef std::list< boost::shared_ptr<NodeList> > list_type; + typedef std::list< std::shared_ptr<NodeList> > list_type; SubpathList(PathManipulator &pm) : _path_manipulator(pm) {} PathManipulator &pm() { return _path_manipulator; } |
