diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-08 13:04:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-09 08:09:58 +0200 |
commit | e9a3b06f4e2b22f26006e0df730ad23d715ecbb6 (patch) | |
tree | 75d02d9b233a997c4bb139effd9637f36f130d89 /include/svx | |
parent | 33e596e03cd486ebb992327988f4bebebd23a0c9 (diff) |
use unique_ptr in SdrUndoGroup
Change-Id: I569c56b6114e07b2a227ad0f906c1a5188a94af4
Reviewed-on: https://gerrit.libreoffice.org/61528
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdundo.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 7a0d9b7f9041..c134fb986590 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -85,7 +85,7 @@ public: class SVX_DLLPUBLIC SdrUndoGroup final : public SdrUndoAction { - std::vector<SdrUndoAction*> aBuf; + std::vector<std::unique_ptr<SdrUndoAction>> maActions; // No expanded description of the Action (contains %O) OUString aComment; @@ -98,9 +98,9 @@ public: virtual ~SdrUndoGroup() override; void Clear(); - sal_Int32 GetActionCount() const { return aBuf.size(); } - SdrUndoAction* GetAction(sal_Int32 nNum) const { return aBuf[nNum]; } - void AddAction(SdrUndoAction* pAct); + sal_Int32 GetActionCount() const { return maActions.size(); } + SdrUndoAction* GetAction(sal_Int32 nNum) const { return maActions[nNum].get(); } + void AddAction(std::unique_ptr<SdrUndoAction> pAct); void SetComment(const OUString& rStr) { aComment=rStr; } void SetObjDescription(const OUString& rStr) { aObjDescription=rStr; } |