From c336f86b9670c515230767dab9dc56128acf03db Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Dec 2020 14:09:01 +0100 Subject: std::shared_ptr --- src/cxml.cc | 2 +- src/cxml.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/cxml.cc b/src/cxml.cc index 667da55..fac787f 100644 --- a/src/cxml.cc +++ b/src/cxml.cc @@ -26,7 +26,7 @@ using std::string; using std::list; -using boost::shared_ptr; +using std::shared_ptr; using boost::optional; cxml::Node::Node () diff --git a/src/cxml.h b/src/cxml.h index 24174ff..d9c8ef6 100644 --- a/src/cxml.h +++ b/src/cxml.h @@ -221,11 +221,11 @@ public: /** @return namespace prefix of this node */ std::string namespace_prefix () const; - boost::shared_ptr node_child (std::string) const; - boost::shared_ptr optional_node_child (std::string) const; + std::shared_ptr node_child (std::string) const; + std::shared_ptr optional_node_child (std::string) const; - std::list > node_children () const; - std::list > node_children (std::string) const; + std::list > node_children () const; + std::list > node_children (std::string) const; xmlpp::Node* node () const { return _node; @@ -238,8 +238,8 @@ private: mutable std::list _taken; }; -typedef boost::shared_ptr NodePtr; -typedef boost::shared_ptr ConstNodePtr; +typedef std::shared_ptr NodePtr; +typedef std::shared_ptr ConstNodePtr; class Document : public Node { -- cgit v1.2.3