summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unostyle.cxx3
-rw-r--r--sw/source/uibase/shells/textsh1.cxx2
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 );