diff options
-rw-r--r-- | sc/source/ui/inc/undodraw.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/undodraw.hxx b/sc/source/ui/inc/undodraw.hxx index 20ec4799e8d3..0950d9d57821 100644 --- a/sc/source/ui/inc/undodraw.hxx +++ b/sc/source/ui/inc/undodraw.hxx @@ -37,7 +37,7 @@ public: ScUndoDraw( std::unique_ptr<SfxUndoAction> pUndo, ScDocShell* pDocSh ); virtual ~ScUndoDraw() override; - SfxUndoAction* ReleaseDrawUndo() { return pDrawUndo.release(); } + std::unique_ptr<SfxUndoAction> ReleaseDrawUndo() { return std::move(pDrawUndo); } virtual void Undo() override; virtual void Redo() override; diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index af5d6fd22a6d..a138a097c48e 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.cxx @@ -77,7 +77,7 @@ bool ScSimpleUndo::Merge( SfxUndoAction *pNextAction ) // ScUndoDraw is later deleted by the UndoManager ScUndoDraw* pCalcUndo = static_cast<ScUndoDraw*>(pNextAction); - pDetectiveUndo.reset( pCalcUndo->ReleaseDrawUndo() ); + pDetectiveUndo = pCalcUndo->ReleaseDrawUndo(); return true; } |