summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/srcedtw.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-24 11:06:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-25 08:46:07 +0200
commitf154ed6d9c5ba1895ec07f0d93337f6941803e59 (patch)
treef9fb67c8bf307f4d59da47da8583ebf88f5604c7 /sw/source/uibase/inc/srcedtw.hxx
parent3426b8ea0ded6423e465bf1770433b39cc345ffd (diff)
loplugin:useuniqueptr in SwSrcEditWindow
Change-Id: I64d8a4ab60df95672363df7a4ac65cf4d2f9c8c2 Reviewed-on: https://gerrit.libreoffice.org/57939 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc/srcedtw.hxx')
-rw-r--r--sw/source/uibase/inc/srcedtw.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/inc/srcedtw.hxx b/sw/source/uibase/inc/srcedtw.hxx
index ef9f90a096f8..beb43502c158 100644
--- a/sw/source/uibase/inc/srcedtw.hxx
+++ b/sw/source/uibase/inc/srcedtw.hxx
@@ -64,8 +64,8 @@ class SwSrcEditWindow : public vcl::Window, public SfxListener
private:
class ChangesListener;
friend class ChangesListener;
- TextView* m_pTextView;
- ExtTextEngine* m_pTextEngine;
+ std::unique_ptr<TextView> m_pTextView;
+ std::unique_ptr<ExtTextEngine> m_pTextEngine;
VclPtr<TextViewOutWin> m_pOutWin;
VclPtr<ScrollBar> m_pHScrollbar,
@@ -121,9 +121,9 @@ public:
void Write(SvStream& rOutput) { m_pTextEngine->Write(rOutput); }
TextView* GetTextView()
- {return m_pTextView;}
+ {return m_pTextView.get();}
TextEngine* GetTextEngine()
- {return m_pTextEngine;}
+ {return m_pTextEngine.get();}
SwSrcView* GetSrcView() {return m_pSrcView;}
TextViewOutWin* GetOutWin() {return m_pOutWin;}