diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-31 20:20:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-31 23:08:51 +0100 |
commit | 20c015f2726904b0d96380a1ec16e7d7406acca1 (patch) | |
tree | 304813e02b61bc9ad849a35ee314d48dbd92993f /sw | |
parent | c77ecfbdbee4b03225e9dad7cbedd5c9c7be0995 (diff) |
cid#1546464 COPY_INSTEAD_OF_MOVE
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 <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
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<SfxItemSet> 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 ); |