From e6de84d46c2a41fc4ae53e2744d432e50c4a4ac1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Jun 2022 09:13:02 +0200 Subject: std::move SfxPoolItem into SfxItemSet where possible found with the help of a temporary loplugin (which i have put into the store/ folder) Change-Id: Ide40d09bef6993ace50039a8fd0439b7e29c09a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135288 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/xml/xmlfmt.cxx | 2 +- sw/source/filter/xml/xmlimpit.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/filter/xml') diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx index 9f5ee3cf0dc1..b317b04473e3 100644 --- a/sw/source/filter/xml/xmlfmt.cxx +++ b/sw/source/filter/xml/xmlfmt.cxx @@ -655,7 +655,7 @@ void SwXMLItemSetStyleContext_Impl::ConnectPageDesc() if( pFormatPageDesc ) { pFormatPageDesc->RegisterToPageDesc( *pPageDesc ); - m_oItemSet->Put( *pFormatPageDesc ); + m_oItemSet->Put( std::move(pFormatPageDesc) ); } } diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index d09221ba2eb6..f60d78f83810 100644 --- a/sw/source/filter/xml/xmlimpit.cxx +++ b/sw/source/filter/xml/xmlimpit.cxx @@ -134,7 +134,7 @@ void SvXMLImportItemMapper::importXML( SfxItemSet& rSet, } if( bPut ) - rSet.Put( *pNewItem ); + rSet.Put( std::move(pNewItem) ); } else { -- cgit