summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-04-24 22:31:20 +0900
committerMichael Stahl <mstahl@redhat.com>2015-04-27 10:12:35 +0000
commit950055bcb06c8edcd9062c71184f02bf8e0604e6 (patch)
treee102f8f81327d68a02fb5972498e5677b80de276 /starmath/inc
parentcc4a4dacbdc731611486490db5894e4a3250e3f7 (diff)
use std::unique_ptr<> to simplify ctor and dtor
Change-Id: I317e7e2a9844a816bea93c805212e3ef2a1888bd Reviewed-on: https://gerrit.libreoffice.org/15515 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/edit.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx
index 601b3b9a1667..dfb24e945c4f 100644
--- a/starmath/inc/edit.hxx
+++ b/starmath/inc/edit.hxx
@@ -25,6 +25,7 @@
#include <svtools/transfer.hxx>
#include <editeng/editdata.hxx>
#include <svtools/colorcfg.hxx>
+#include <memory>
class SmDocShell;
class SmViewShell;
@@ -53,10 +54,10 @@ class SmEditWindow : public vcl::Window, public DropTargetHelper
SmEditAccessible * pAccessible;
SmCmdBoxWindow &rCmdBox;
- EditView *pEditView;
- ScrollBar *pHScrollBar,
- *pVScrollBar;
- ScrollBarBox *pScrollBox;
+ std::unique_ptr<EditView> pEditView;
+ std::unique_ptr<ScrollBar> pHScrollBar;
+ std::unique_ptr<ScrollBar> pVScrollBar;
+ std::unique_ptr<ScrollBarBox> pScrollBox;
Idle aModifyIdle,
aCursorMoveIdle;
ESelection aOldSelection;
@@ -94,7 +95,7 @@ public:
SmDocShell * GetDoc();
SmViewShell * GetView();
- EditView * GetEditView() { return pEditView; }
+ EditView * GetEditView();
EditEngine * GetEditEngine();
SfxItemPool * GetEditEngineItemPool();