summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-01-01 13:53:56 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2015-01-01 13:53:56 +0900
commit24c52aaeb99984cc62c7235430a107d34e0d6e3b (patch)
treef4436a29178527646d6d0c652fc568af262153cc /starmath
parent53f51e32ea541dc99b264934dd255fc2fafe924f (diff)
starmath: boost::shared_ptr to std::shared_ptr
Change-Id: Id077493f9e462a00c427bc493f823fed79617c07
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/ElementsDockingWindow.hxx3
-rw-r--r--starmath/inc/node.hxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx
index 85b27a4f9a6b..c71638978250 100644
--- a/starmath/inc/ElementsDockingWindow.hxx
+++ b/starmath/inc/ElementsDockingWindow.hxx
@@ -28,6 +28,7 @@
#include <document.hxx>
#include <node.hxx>
+#include <memory>
class SmElement
{
@@ -85,7 +86,7 @@ class SmElementsControl : public Control
virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE;
virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE;
- typedef boost::shared_ptr<SmElement> SmElementPointer;
+ typedef std::shared_ptr<SmElement> SmElementPointer;
typedef std::vector< SmElementPointer > SmElementList;
SmDocShell* mpDocShell;
diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx
index 28acdebdb304..e70d5a3097cb 100644
--- a/starmath/inc/node.hxx
+++ b/starmath/inc/node.hxx
@@ -30,7 +30,7 @@
#include "rect.hxx"
#include "format.hxx"
#include <boost/ptr_container/ptr_deque.hpp>
-
+#include <memory>
#define ATTR_BOLD 0x0001
#define ATTR_ITALIC 0x0002
@@ -59,7 +59,7 @@ class SmDocShell;
class SmNode;
class SmStructureNode;
-typedef boost::shared_ptr<SmNode> SmNodePointer;
+typedef std::shared_ptr<SmNode> SmNodePointer;
typedef boost::ptr_deque<SmNode> SmNodeStack;
typedef std::vector< SmNode * > SmNodeArray;
typedef std::vector< SmStructureNode * > SmStructureNodeArray;