From 20c015f2726904b0d96380a1ec16e7d7406acca1 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 31 Dec 2023 20:20:00 +0000 Subject: cid#1546464 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1546346 COPY_INSTEAD_OF_MOVE cid#1546342 COPY_INSTEAD_OF_MOVE cid#1546320 COPY_INSTEAD_OF_MOVE cid#1546305 COPY_INSTEAD_OF_MOVE cid#1546241 COPY_INSTEAD_OF_MOVE cid#1546162 COPY_INSTEAD_OF_MOVE cid#1546118 COPY_INSTEAD_OF_MOVE cid#1546048 COPY_INSTEAD_OF_MOVE cid#1545989 COPY_INSTEAD_OF_MOVE cid#1545936 COPY_INSTEAD_OF_MOVE Change-Id: I63bc43378b36f7c49e66231152138ad7038971e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161507 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/core/unocore/unostyle.cxx | 3 +-- sw/source/uibase/shells/textsh1.cxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index c3128421b809..e4c7b89bc3df 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -3853,9 +3853,8 @@ uno::Any SwXAutoStylesEnumerator::nextElement( ) uno::Any aRet; if( m_pImpl->hasMoreElements() ) { - std::shared_ptr pNextSet = m_pImpl->nextElement(); uno::Reference< style::XAutoStyle > xAutoStyle = new SwXAutoStyle(&m_pImpl->getDoc(), - pNextSet, m_pImpl->getFamily()); + m_pImpl->nextElement(), m_pImpl->getFamily()); aRet <<= xAutoStyle; } return aRet; diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 2bf6c670e489..23e968ffd524 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -2649,7 +2649,7 @@ void SwTextShell::GetState( SfxItemSet &rSet ) aActionIndicesSequence, aStringKeyMaps, xRange, - xController, + std::move(xController), std::move(aLocale), aApplicationName, aRangeText ); -- cgit