summaryrefslogtreecommitdiffstats
path: root/include/svx/svdundo.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 13:51:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-17 07:08:53 +0100
commit71545d500e4b88e960a73d499328504ce99397a8 (patch)
tree2bcd1a1e1ad08f15b164eb7d395a4cbb4c96fa74 /include/svx/svdundo.hxx
parentRevert "loplugin:changetoolsgen in sc" and reapply plugin (diff)
downloadcore-71545d500e4b88e960a73d499328504ce99397a8.tar.gz
core-71545d500e4b88e960a73d499328504ce99397a8.zip
loplugin:useuniqueptr in SdrUndoAttrObj
Change-Id: I4174c1f1746dd501ce7428c3c2051dfed7042f7b Reviewed-on: https://gerrit.libreoffice.org/49870 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/svdundo.hxx')
-rw-r--r--include/svx/svdundo.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx
index 9cb4271d0a86..642b67954073 100644
--- a/include/svx/svdundo.hxx
+++ b/include/svx/svdundo.hxx
@@ -144,8 +144,8 @@ protected:
class SVX_DLLPUBLIC SdrUndoAttrObj : public SdrUndoObj
{
protected:
- SfxItemSet* pUndoSet;
- SfxItemSet* pRedoSet;
+ std::unique_ptr<SfxItemSet> pUndoSet;
+ std::unique_ptr<SfxItemSet> pRedoSet;
// FIXME: Or should we better remember the StyleSheetNames?
rtl::Reference< SfxStyleSheetBase > mxUndoStyleSheet;
@@ -154,13 +154,15 @@ protected:
bool bHaveToTakeRedoSet;
// When assigning TextItems to a drawing object with text:
- OutlinerParaObject* pTextUndo;
+ std::unique_ptr<OutlinerParaObject>
+ pTextUndo;
// #i8508#
// The text rescue mechanism needs also to be implemented for redo actions.
- OutlinerParaObject* pTextRedo;
+ std::unique_ptr<OutlinerParaObject>
+ pTextRedo;
// If we have a group object:
- SdrUndoGroup* pUndoGroup;
+ std::unique_ptr<SdrUndoGroup> pUndoGroup;
// Helper to ensure StyleSheet is in pool (provided by SdrModel from SdrObject)
static void ensureStyleSheetInStyleSheetPool(SfxStyleSheetBasePool& rStyleSheetPool, SfxStyleSheet& rSheet);