summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-04 13:57:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-05 08:08:09 +0200
commitdbe85d6613f96192417059acb3274e981a57819d (patch)
tree9914c026427f93b4779738a3ae823754f7304fe2 /sw/source/uibase/docvw
parentd46061c3190b66cbf698f6ff5e97ec1fd9fe0d44 (diff)
use std::unique_ptr in sw::IDocumentUndoRedo
Change-Id: I504706ff1a3fc11a7a06ebe935f9dbc5323aefe8 Reviewed-on: https://gerrit.libreoffice.org/61369 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r--sw/source/uibase/docvw/AnnotationWin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx
index 77f6ebf3961b..cc034f072e1c 100644
--- a/sw/source/uibase/docvw/AnnotationWin.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin.cxx
@@ -229,7 +229,7 @@ void SwAnnotationWin::UpdateData()
SwPosition aPosition( pTextField->GetTextNode() );
aPosition.nContent = pTextField->GetStart();
rUndoRedo.AppendUndo(
- new SwUndoFieldFromDoc(aPosition, *pOldField, *mpField, nullptr, true));
+ o3tl::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
}
// so we get a new layout of notes (anchor position is still the same and we would otherwise not get one)
mrMgr.SetLayout();
@@ -392,7 +392,7 @@ void SwAnnotationWin::InitAnswer(OutlinerParaObject const * pText)
SwPosition aPosition( pTextField->GetTextNode() );
aPosition.nContent = pTextField->GetStart();
rUndoRedo.AppendUndo(
- new SwUndoFieldFromDoc(aPosition, *pOldField, *mpField, nullptr, true));
+ o3tl::make_unique<SwUndoFieldFromDoc>(aPosition, *pOldField, *mpField, nullptr, true));
}
mpOutliner->SetModifyHdl( LINK( this, SwAnnotationWin, ModifyHdl ) );
mpOutliner->ClearModifyFlag();