]> git.lyx.org Git - features.git/blobdiff - src/output_xhtml.h
Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr
[features.git] / src / output_xhtml.h
index 473ebe335a41a744e83663c22aab32fefdf1de8e..a2eac95ab437881bf06926839fe04e786aae94ac 100644 (file)
 #include "LayoutEnums.h"
 
 #include "support/docstream.h"
-#include "support/shared_ptr.h"
 #include "support/strfwd.h"
 
 #include <deque>
+#include <memory>
+
 
 namespace lyx {
 
@@ -275,12 +276,11 @@ private:
        // own these pointers and how they will be deleted, so we use shared
        // pointers.
        ///
-       typedef shared_ptr<html::StartTag> TagPtr;
+       typedef std::shared_ptr<html::StartTag> TagPtr;
        typedef std::deque<TagPtr> TagDeque;
        ///
        template <typename T>
-       shared_ptr<T> makeTagPtr(T const & tag)
-               { return shared_ptr<T>(new T(tag)); }
+       TagPtr makeTagPtr(T const & tag) { return std::make_shared<T>(tag); }
        ///
        TagDeque pending_tags_;
        ///