diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2025-03-01 12:03:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2025-03-01 20:06:46 +0100 |
commit | 180458bcc4b78bf964d11e8c7be1e6e175cc9262 (patch) | |
tree | 21b1586ff50e1babea45240b8b50e35ae046b93f /forms | |
parent | 0ed6480f563c0f7f5601fb2045c5be2bafd226db (diff) |
cid#1643904 COPY_INSTEAD_OF_MOVE
Change-Id: I5f59d7f3f147aa80d164fd8d20e1adad317910d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182385
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/FormattedFieldWrapper.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/forms/source/component/FormattedFieldWrapper.cxx b/forms/source/component/FormattedFieldWrapper.cxx index 087612530bc7..a73f60d596b6 100644 --- a/forms/source/component/FormattedFieldWrapper.cxx +++ b/forms/source/component/FormattedFieldWrapper.cxx @@ -89,11 +89,10 @@ Reference< XCloneable > SAL_CALL OFormattedFieldWrapper::createClone() // clone the aggregate if ( m_xAggregate.is() ) { - rtl::Reference< OEditBaseModel > xClone = static_cast<OEditBaseModel*>(m_xAggregate->createClone().get()); - xRef->m_xAggregate = xClone; + xRef->m_xAggregate.set(static_cast<OEditBaseModel*>(m_xAggregate->createClone().get())); OSL_ENSURE(xRef->m_xAggregate.is(), "invalid aggregate cloned !"); - xRef->m_xFormattedPart = xClone; + xRef->m_xFormattedPart = xRef->m_xAggregate; if ( m_pEditPart.is() ) { |