diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 08:40:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 12:17:03 +0200 |
commit | ff27aa2ca0ff9b6520d65bf1bb6f7fc2c6efd79d (patch) | |
tree | 105c7c8b9f6aaa4a426ac807b0cea34d48958774 /slideshow | |
parent | 87132f2ceae0b8e41cf028bb3c82b497fbb3d982 (diff) |
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.mcnamara@collabora.com>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/shapes/drawshape.cxx | 2 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/shapeimporter.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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 |