sw/source/ui/vba/vbaformfields.cxx | 2 +- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
New commits: commit 3bf1c0d23afccaa84c3d4ecd701c20e60f9e2994 Author: Caolán McNamara <[email protected]> AuthorDate: Sun Dec 3 19:44:47 2023 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Dec 4 10:47:26 2023 +0100 cid#1546495 COPY_INSTEAD_OF_MOVE Change-Id: I8bc5ec6b9586a27e94164580ca7c1f785a08b04d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160273 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 4bc611992c88..76ab50135427 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -3718,8 +3718,7 @@ RTFError RTFDocumentImpl::handleEmbeddedObject() uno::Reference<io::XInputStream> xInputStream( new utl::OSeekableInputStreamWrapper(pStream.release(), /*_bOwner=*/true)); - auto pStreamValue = new RTFValue(xInputStream); - m_aOLEAttributes.set(NS_ooxml::LN_inputstream, pStreamValue); + m_aOLEAttributes.set(NS_ooxml::LN_inputstream, new RTFValue(xInputStream)); return RTFError::OK; } commit 8c0ed1d92c128fa73b0441581a958bab317f6fa7 Author: Caolán McNamara <[email protected]> AuthorDate: Sun Dec 3 19:43:33 2023 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Dec 4 10:47:14 2023 +0100 cid#1546497 COPY_INSTEAD_OF_MOVE Change-Id: I9bcbbdef1521dc77ccaca2734c662c12ac188b60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160272 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/ui/vba/vbaformfields.cxx b/sw/source/ui/vba/vbaformfields.cxx index 586393e35818..9c8af450d345 100644 --- a/sw/source/ui/vba/vbaformfields.cxx +++ b/sw/source/ui/vba/vbaformfields.cxx @@ -81,7 +81,7 @@ class FormFieldsEnumWrapper : public EnumerationHelper_BASE sal_Int32 mnIndex; public: - explicit FormFieldsEnumWrapper(uno::Reference<container::XIndexAccess> xIndexAccess) + explicit FormFieldsEnumWrapper(const uno::Reference<container::XIndexAccess>& xIndexAccess) : mxIndexAccess(xIndexAccess) , mnIndex(0) {
