summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/view.hxx6
-rw-r--r--starmath/source/view.cxx1
2 files changed, 5 insertions, 2 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index 215ac5479025..b23572e2d1e9 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -19,6 +19,10 @@
#ifndef INCLUDED_STARMATH_INC_VIEW_HXX
#define INCLUDED_STARMATH_INC_VIEW_HXX
+#include <sal/config.h>
+
+#include <memory>
+
#include <sfx2/dockwin.hxx>
#include <sfx2/viewsh.hxx>
#include <svtools/scrwin.hxx>
@@ -224,7 +228,7 @@ class SmViewShell: public SfxViewShell
// for handling the PasteClipboardState
friend class SmClipboardChangeListener;
- SmViewShell_Impl* pImpl;
+ std::unique_ptr<SmViewShell_Impl> pImpl;
SmGraphicWindow aGraphic;
SmGraphicController aGraphicController;
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 075941d4d670..55874794153a 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1972,7 +1972,6 @@ SmViewShell::~SmViewShell()
SmEditWindow *pEditWin = GetEditWindow();
if (pEditWin)
pEditWin->DeleteEditView( *this );
- delete pImpl;
}
void SmViewShell::Deactivate( bool bIsMDIActivate )