From 3d604d1cd6cc70ef96782ef769f0479b509987a8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 Sep 2018 13:51:39 +0200 Subject: clang-tidy performance-move-const-arg Change-Id: I607891e120688b746c8a4c577018d97147a79217 Reviewed-on: https://gerrit.libreoffice.org/60029 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/bitmap/bitmap.cxx | 2 +- vcl/source/gdi/impgraph.cxx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'vcl') diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index 2de0da7b1a72..b0b59906f0da 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -221,7 +221,7 @@ Bitmap& Bitmap::operator=( const Bitmap& rBitmap ) Bitmap& Bitmap::operator=( Bitmap&& rBitmap ) { - maPrefSize = std::move(rBitmap.maPrefSize); + maPrefSize = rBitmap.maPrefSize; maPrefMapMode = std::move(rBitmap.maPrefMapMode); mxSalBmp = std::move(rBitmap.mxSalBmp); diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 005427b66dce..49af5af45bf2 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -212,8 +212,8 @@ ImpGraphic::ImpGraphic(const ImpGraphic& rImpGraphic) } ImpGraphic::ImpGraphic(ImpGraphic&& rImpGraphic) - : maMetaFile(std::move(rImpGraphic.maMetaFile)) - , maEx(std::move(rImpGraphic.maEx)) + : maMetaFile(rImpGraphic.maMetaFile) + , maEx(rImpGraphic.maEx) , maSwapInfo(std::move(rImpGraphic.maSwapInfo)) , mpAnimation(std::move(rImpGraphic.mpAnimation)) , mpContext(std::move(rImpGraphic.mpContext)) @@ -226,8 +226,8 @@ ImpGraphic::ImpGraphic(ImpGraphic&& rImpGraphic) , maVectorGraphicData(std::move(rImpGraphic.maVectorGraphicData)) , mpPdfData(std::move(rImpGraphic.mpPdfData)) , maGraphicExternalLink(rImpGraphic.maGraphicExternalLink) - , maLastUsed (std::chrono::high_resolution_clock::now()) - , mbPrepared (rImpGraphic.mbPrepared) + , maLastUsed(std::chrono::high_resolution_clock::now()) + , mbPrepared(rImpGraphic.mbPrepared) , mnPageNumber(rImpGraphic.mnPageNumber) { rImpGraphic.ImplClear(); @@ -360,7 +360,7 @@ ImpGraphic& ImpGraphic::operator=(ImpGraphic&& rImpGraphic) { sal_Int64 aOldSizeBytes = mnSizeBytes; - maMetaFile = std::move(rImpGraphic.maMetaFile); + maMetaFile = rImpGraphic.maMetaFile; meType = rImpGraphic.meType; mnSizeBytes = rImpGraphic.mnSizeBytes; maSwapInfo = std::move(rImpGraphic.maSwapInfo); @@ -368,7 +368,7 @@ ImpGraphic& ImpGraphic::operator=(ImpGraphic&& rImpGraphic) mbDummyContext = rImpGraphic.mbDummyContext; mnPageNumber = rImpGraphic.mnPageNumber; mpAnimation = std::move(rImpGraphic.mpAnimation); - maEx = std::move(rImpGraphic.maEx); + maEx = rImpGraphic.maEx; mbSwapOut = rImpGraphic.mbSwapOut; mpSwapFile = std::move(rImpGraphic.mpSwapFile); mpGfxLink = std::move(rImpGraphic.mpGfxLink); -- cgit