diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 09:13:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 10:45:44 +0200 |
commit | e6de84d46c2a41fc4ae53e2744d432e50c4a4ac1 (patch) | |
tree | 6be38c21e699cf240ff4b5eb3dd38e251dda96b5 /sw/source/filter/xml | |
parent | 1577c0dc30ed3c9db361fb989e41a3e9d6c45dfa (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r-- | sw/source/filter/xml/xmlfmt.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/xml/xmlimpit.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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 { |