diff options
Diffstat (limited to 'sc/source/filter/xml/xmlcelli.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 5 |
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 |