diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-23 14:23:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-27 08:21:44 +0200 |
commit | 50af4bf5c67eaac39d02cfe20584906eec058235 (patch) | |
tree | cc3fc72fb849943121c8df0f73937151c44931d9 /sc/inc | |
parent | 26ebaae4f1e43d43646cf132379058b4b78065af (diff) |
loplugin:useuniqueptr in ScDrawLayer
Change-Id: I684e391b738be23ba7769b7c5b0a354f43a9226e
Reviewed-on: https://gerrit.libreoffice.org/51903
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/drwlayer.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 5f695160cc42..3d9e2b72b685 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -96,7 +96,7 @@ class SC_DLLPUBLIC ScDrawLayer : public FmFormModel private: OUString aName; ScDocument* pDoc; - SdrUndoGroup* pUndoGroup; + std::unique_ptr<SdrUndoGroup> pUndoGroup; bool bRecording; bool bAdjustEnabled; bool bHyphenatorSet; @@ -135,7 +135,7 @@ public: void EnableAdjust( bool bSet ) { bAdjustEnabled = bSet; } void BeginCalcUndo(bool bDisableTextEditUsesCommonUndoManager); - SdrUndoGroup* GetCalcUndo(); + std::unique_ptr<SdrUndoGroup> GetCalcUndo(); bool IsRecording() const { return bRecording; } void AddCalcUndo( SdrUndoAction* pUndo ); |