summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 18:50:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 21:05:40 +0200
commit7d6352b6561c50b7622cfd4314ffcd2766a31108 (patch)
tree7d6773ae3aa9e0659cee921def6cc8671ee8717b
parenta43b684267a42f733cb5d752cddfe307ce4a0077 (diff)
loplugin:moveparam in filter
Change-Id: I4f41f834035fcefc22486723c971929890143dd4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123423 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--filter/source/svg/svgexport.cxx4
-rw-r--r--filter/source/svg/svgfontexport.cxx4
-rw-r--r--filter/source/svg/svgfontexport.hxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 6b9d0cdb8f5b..0e0ba464e762 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -957,7 +957,7 @@ bool SVGFilter::implExportDocument()
aObjects[ nPos++ ] = elem.second;
}
- mpSVGFontExport = new SVGFontExport( *mpSVGExport, aObjects );
+ mpSVGFontExport = new SVGFontExport( *mpSVGExport, std::move(aObjects) );
mpSVGWriter = new SVGActionWriter( *mpSVGExport, *mpSVGFontExport );
if( mpSVGExport->IsEmbedFonts() )
@@ -2851,7 +2851,7 @@ void SVGExport::writeMtf( const GDIMetaFile& rMtf )
std::vector< ObjectRepresentation > aObjects;
aObjects.emplace_back( Reference< XInterface >(), rMtf );
- SVGFontExport aSVGFontExport( *this, aObjects );
+ SVGFontExport aSVGFontExport( *this, std::move(aObjects) );
Point aPoint100thmm( OutputDevice::LogicToLogic(rMtf.GetPrefMapMode().GetOrigin(), rMtf.GetPrefMapMode(), MapMode(MapUnit::Map100thMM)) );
Size aSize100thmm( OutputDevice::LogicToLogic(rMtf.GetPrefSize(), rMtf.GetPrefMapMode(), MapMode(MapUnit::Map100thMM)) );
diff --git a/filter/source/svg/svgfontexport.cxx b/filter/source/svg/svgfontexport.cxx
index ab730d3d2774..b0cbed97e4e7 100644
--- a/filter/source/svg/svgfontexport.cxx
+++ b/filter/source/svg/svgfontexport.cxx
@@ -36,9 +36,9 @@
const sal_Int32 nFontEM = 2048;
-SVGFontExport::SVGFontExport( SVGExport& rExport, const ::std::vector< ObjectRepresentation >& rObjects ) :
+SVGFontExport::SVGFontExport( SVGExport& rExport, ::std::vector< ObjectRepresentation >&& rObjects ) :
mrExport( rExport ),
- maObjects( rObjects ),
+ maObjects( std::move(rObjects) ),
mnCurFontId( 0 )
{
}
diff --git a/filter/source/svg/svgfontexport.hxx b/filter/source/svg/svgfontexport.hxx
index c5f6bd2411db..6492ebd9c04c 100644
--- a/filter/source/svg/svgfontexport.hxx
+++ b/filter/source/svg/svgfontexport.hxx
@@ -62,7 +62,7 @@ private:
public:
- SVGFontExport( SVGExport& rExport, const ::std::vector< ObjectRepresentation >& rObjects );
+ SVGFontExport( SVGExport& rExport, ::std::vector< ObjectRepresentation >&& rObjects );
~SVGFontExport();
void EmbedFonts();