summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 11:01:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-07 09:46:45 +0100
commitf4b9c35c018ccacd7f8cf71c534863239b0da02c (patch)
tree89b1b19c5ae2ea6aeeaa9d1239a603e9143cbfaf /include
parent9b1adb42c97115b3f670f32639dd3f6d80f0d33e (diff)
loplugin:useuniqueptr in SdrUndoObjSetText
Change-Id: Idd1eb8263d679efed0f0be88fb05963fe44f8668 Reviewed-on: https://gerrit.libreoffice.org/49328 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdundo.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx
index 793782d37ed1..9cb4271d0a86 100644
--- a/include/svx/svdundo.hxx
+++ b/include/svx/svdundo.hxx
@@ -398,8 +398,10 @@ public:
class SVX_DLLPUBLIC SdrUndoObjSetText : public SdrUndoObj
{
protected:
- OutlinerParaObject* pOldText;
- OutlinerParaObject* pNewText;
+ std::unique_ptr<OutlinerParaObject>
+ pOldText;
+ std::unique_ptr<OutlinerParaObject>
+ pNewText;
bool bNewTextAvailable;
bool bEmptyPresObj;
sal_Int32 mnText;