From f7ce839c7844f029c0a1ac83a5638e83356b4c4b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 Oct 2018 11:22:10 +0200 Subject: use unique_ptr in SfxUndoManager::AddUndoAction Change-Id: I11483e3cece12a7373f4276972b4c899edf1ce15 Reviewed-on: https://gerrit.libreoffice.org/61566 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svl/undo.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/svl/undo.hxx') diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 456a31f56b18..9451b9bd8e71 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -190,7 +190,7 @@ public: virtual ~SfxUndoManager(); void SetMaxUndoActionCount( size_t nMaxUndoActionCount ); - virtual void AddUndoAction( SfxUndoAction *pAction, bool bTryMerg=false ); + virtual void AddUndoAction( std::unique_ptr pAction, bool bTryMerg=false ); virtual size_t GetUndoActionCount( bool const i_currentLevel = CurrentLevel ) const; OUString GetUndoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const; SfxUndoAction* GetUndoAction( size_t nNo=0 ) const; -- cgit