summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 11:35:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 13:44:43 +0200
commit010e2a574c7fadfb60d6794a1bfb38acc8082e0a (patch)
tree22bed9f29aa3291845be4ae9f8cafd7509496a65 /sw/source/filter/xml
parente59db22b3b57c9e1a5678218cb56fb75bcc84c26 (diff)
loplugin:moveit
Change-Id: I34de7408553e4ca702cab9aa611c03dc60b9b6a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138472 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/xmltble.cxx4
-rw-r--r--sw/source/filter/xml/xmltexti.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmltble.cxx b/sw/source/filter/xml/xmltble.cxx
index da4b0473f4ad..4cfc25736250 100644
--- a/sw/source/filter/xml/xmltble.cxx
+++ b/sw/source/filter/xml/xmltble.cxx
@@ -648,7 +648,7 @@ void SwXMLExport::ExportTableLinesAutoStyles( const SwTableLines& rLines,
SwFrameFormat *pFrameFormat = pLine->GetFrameFormat();
if (auto oNew = rExpRows.AddRow(*pFrameFormat, rNamePrefix, nLine))
{
- ExportFormat(*pFrameFormat, XML_TABLE_ROW, oNew);
+ ExportFormat(*pFrameFormat, XML_TABLE_ROW, std::move(oNew));
}
const SwTableBoxes& rBoxes = pLine->GetTabBoxes();
@@ -679,7 +679,7 @@ void SwXMLExport::ExportTableLinesAutoStyles( const SwTableLines& rLines,
if (auto oNew = rExpCells.AddCell(*pFrameFormat2, rNamePrefix, nOldCol, nLine,
bTop) )
{
- ExportFormat(*pFrameFormat2, XML_TABLE_CELL, oNew);
+ ExportFormat(*pFrameFormat2, XML_TABLE_CELL, std::move(oNew));
}
Reference < XCell > xCell = SwXCell::CreateXCell(
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index 448ea1b79043..586f23873ce9 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -618,7 +618,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertApplet(
SfxItemSetFixed<RES_FRMATR_BEGIN, RES_FRMATR_END> aItemSet( pDoc->GetAttrPool() );
lcl_putHeightAndWidth( aItemSet, nHeight, nWidth);
- SwApplet_Impl aAppletImpl ( aItemSet );
+ SwApplet_Impl aAppletImpl ( std::move(aItemSet) );
OUString sCodeBase;
if( !rHRef.isEmpty() )