summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-10 19:32:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-10 22:19:57 +0200
commitc616a663b3c7bc107f11cb3abb3cf8845083ac60 (patch)
tree510006f5a0896f2810a9f30388f3bc9666f7756c
parent06bc9956769cef5e0f45d621453517e95845bbdb (diff)
we are cloning the contents of a temporary std::unique_ptr
which is destroyed immediately after anyway, so just take ownership directly Change-Id: I70d508da54ca26024da0640c10a043d5bd02d331 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104175 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/docvw/AnnotationWin2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx
index dbbaceb5e11d..e252f0fed78c 100644
--- a/sw/source/uibase/docvw/AnnotationWin2.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin2.cxx
@@ -1272,7 +1272,7 @@ void SwAnnotationWin::ExecuteCommand(sal_uInt16 nSlot)
// will be created
if (!mpOutliner->GetEditEngine().GetText().isEmpty())
{
- OutlinerParaObject* pPara = new OutlinerParaObject(*GetOutlinerView()->GetEditView().CreateTextObject());
+ OutlinerParaObject* pPara = new OutlinerParaObject(GetOutlinerView()->GetEditView().CreateTextObject());
mrMgr.RegisterAnswer(pPara);
}
if (mrMgr.HasActiveSidebarWin())