slideshow/source/engine/shapes/drawshape.cxx | 4 ++-- slideshow/source/engine/shapes/shapeimporter.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit ff27aa2ca0ff9b6520d65bf1bb6f7fc2c6efd79d Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Apr 30 08:40:00 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Apr 30 12:17:03 2024 +0200 cid#1596694 COPY_INSTEAD_OF_MOVE and cid#1596695 COPY_INSTEAD_OF_MOVE Change-Id: Id90f4da2edf45f7de324fdc9d910cfc3931fa60f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166889 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx index 8ec6a4c100a9..644d2c337b58 100644 --- a/slideshow/source/engine/shapes/drawshape.cxx +++ b/slideshow/source/engine/shapes/drawshape.cxx @@ -572,7 +572,7 @@ namespace slideshow::internal DrawShapeSharedPtr pShape( new DrawShape(xShape, xContainingPage, nPrio, - pGraphic, + std::move(pGraphic), rContext) ); if( pShape->hasIntrinsicAnimation() ) diff --git a/slideshow/source/engine/shapes/shapeimporter.cxx b/slideshow/source/engine/shapes/shapeimporter.cxx index 33cb42469d31..9872427046d0 100644 --- a/slideshow/source/engine/shapes/shapeimporter.cxx +++ b/slideshow/source/engine/shapes/shapeimporter.cxx @@ -320,7 +320,7 @@ ShapeSharedPtr ShapeImporter::createShape( return DrawShape::create( xCurrShape, mxPage, mnAscendingPrio, - pGraphic, + std::move(pGraphic), mrContext ); } else commit 87132f2ceae0b8e41cf028bb3c82b497fbb3d982 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Apr 30 08:37:12 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Apr 30 12:16:55 2024 +0200 cid#1596696 COPY_INSTEAD_OF_MOVE Change-Id: I6e8473a569b14591d2b83284d37a672c1ade35cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166887 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx index 4f4a81beeddf..8ec6a4c100a9 100644 --- a/slideshow/source/engine/shapes/drawshape.cxx +++ b/slideshow/source/engine/shapes/drawshape.cxx @@ -1279,7 +1279,7 @@ namespace slideshow::internal } DelayedGraphicLoader::DelayedGraphicLoader(std::shared_ptr<Graphic> pGraphic) - : mpGraphic(pGraphic) + : mpGraphic(std::move(pGraphic)) , mpVDevMask(DeviceFormat::WITHOUT_ALPHA) { }