summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-31 16:34:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-31 22:03:58 +0200
commit053d4b0bc3288c6e7e09ff2e1cdb0f8219bc3821 (patch)
treeeb65b4c1c11ed34d9c6051ca0fa8b4c9d29754c0 /sw/inc
parent1b6026f6661674439a638ae6c4d5c3771fafdb22 (diff)
use std::unique_ptr
Change-Id: I49de2307c7f508ce25eb89e88441fc7a2350bf27 Reviewed-on: https://gerrit.libreoffice.org/55140 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/view.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index c8b03778acc2..eca967473ae6 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -166,7 +166,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
tools::Rectangle m_aVisArea; // visible region
VclPtr<SwEditWin> m_pEditWin;
- SwWrtShell *m_pWrtShell;
+ std::unique_ptr<SwWrtShell> m_pWrtShell;
SfxShell *m_pShell; // current SubShell at the dispatcher
FmFormShell *m_pFormShell; // DB-FormShell
@@ -387,7 +387,7 @@ public:
void StopShellTimer();
SwWrtShell& GetWrtShell () const { return *m_pWrtShell; }
- SwWrtShell* GetWrtShellPtr() const { return m_pWrtShell; }
+ SwWrtShell* GetWrtShellPtr() const { return m_pWrtShell.get(); }
SwEditWin &GetEditWin() { return *m_pEditWin; }
const SwEditWin &GetEditWin () const { return *m_pEditWin; }