summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 09:13:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-02 10:45:44 +0200
commite6de84d46c2a41fc4ae53e2744d432e50c4a4ac1 (patch)
tree6be38c21e699cf240ff4b5eb3dd38e251dda96b5 /sc/source/filter/xml
parent1577c0dc30ed3c9db361fb989e41a3e9d6c45dfa (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 'sc/source/filter/xml')
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 0f47ae25c96b..0d0a81ebade6 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -393,8 +393,7 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons
if (nLastItemID != pEntry->mnItemID && pPoolItem)
{
// Flush the last item when the item ID changes.
- rFmt.maItemSet.Put(*pPoolItem);
- pPoolItem.reset();
+ rFmt.maItemSet.Put(std::move(pPoolItem));
}
switch (pEntry->mnItemID)
@@ -562,7 +561,7 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons
}
if (pPoolItem)
- rFmt.maItemSet.Put(*pPoolItem);
+ rFmt.maItemSet.Put(std::move(pPoolItem));
}
OUString ScXMLTableRowCellContext::GetFirstParagraph() const