diff options
Diffstat (limited to 'sw/source/uibase/docvw/AnnotationWin.cxx')
-rw-r--r-- | sw/source/uibase/docvw/AnnotationWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx index 4b641a57dfa9..7fef02cdf522 100644 --- a/sw/source/uibase/docvw/AnnotationWin.cxx +++ b/sw/source/uibase/docvw/AnnotationWin.cxx @@ -241,7 +241,7 @@ void SwAnnotationWin::UpdateData() pOldField.reset(mpField->Copy()); } mpField->SetPar2(mpOutliner->GetEditEngine().GetText()); - mpField->SetTextObject(std::unique_ptr<OutlinerParaObject>(mpOutliner->CreateParaObject())); + mpField->SetTextObject(mpOutliner->CreateParaObject()); if (rUndoRedo.DoesUndo()) { SwTextField *const pTextField = mpFormatField->GetTextField(); @@ -404,7 +404,7 @@ void SwAnnotationWin::InitAnswer(OutlinerParaObject const * pText) pOldField.reset(mpField->Copy()); } mpField->SetPar2(mpOutliner->GetEditEngine().GetText()); - mpField->SetTextObject(std::unique_ptr<OutlinerParaObject>(mpOutliner->CreateParaObject())); + mpField->SetTextObject(mpOutliner->CreateParaObject()); if (rUndoRedo.DoesUndo()) { SwTextField *const pTextField = mpFormatField->GetTextField(); |