diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-05 13:51:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-06 08:33:28 +0200 |
commit | 3d604d1cd6cc70ef96782ef769f0479b509987a8 (patch) | |
tree | 068bb54b87dd46640ff752994133692551118400 /vcl | |
parent | 16afac775a048d6d57d43952c855345f47cb231f (diff) |
clang-tidy performance-move-const-arg
Change-Id: I607891e120688b746c8a4c577018d97147a79217
Reviewed-on: https://gerrit.libreoffice.org/60029
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/bitmap.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
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); |