diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 19:29:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 22:19:40 +0200 |
commit | 06bc9956769cef5e0f45d621453517e95845bbdb (patch) | |
tree | 47cf7883def6843284041a6b25c5b7234781a4d8 /sw/source | |
parent | fb8973f31f111229be5184f4e4223e963ced2c7b (diff) |
we throw away the original of the clone
so we can take ownership of the original instead
Change-Id: I2399aa77b22e606008a5aed2bc73361e13b68455
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104174
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 74a7e880829e..2bb012ea6782 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -1185,11 +1185,9 @@ void SwWW8ImplReader::InsertTxbxText(SdrTextObj* pTextObj, } bool bVertical = pTextObj->IsVerticalWriting(); - std::unique_ptr<EditTextObject> pTemporaryText = m_pDrawEditEngine->CreateTextObject(); - std::unique_ptr<OutlinerParaObject> pOp( new OutlinerParaObject(*pTemporaryText) ); + std::unique_ptr<OutlinerParaObject> pOp(new OutlinerParaObject(m_pDrawEditEngine->CreateTextObject())); pOp->SetOutlinerMode( OutlinerMode::TextObject ); pOp->SetVertical( bVertical ); - pTemporaryText.reset(); pTextObj->NbcSetOutlinerParaObject( std::move(pOp) ); pTextObj->SetVerticalWriting(bVertical); |