summaryrefslogtreecommitdiff
path: root/slideshow/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-01 12:05:36 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-02 10:05:45 +0200
commitd5ad9c0777602541fb39dea5da71e7bfd70595fb (patch)
tree6a11c24cbe459c5d9447312f6fc77a497c8622cf /slideshow/source
parentc7bc52f8e69f772edad9c4f695155281e19b1952 (diff)
cid#1556086 COPY_INSTEAD_OF_MOVE
and cid#1556087 COPY_INSTEAD_OF_MOVE cid#1556093 COPY_INSTEAD_OF_MOVE cid#1556094 COPY_INSTEAD_OF_MOVE cid#1556105 COPY_INSTEAD_OF_MOVE cid#1556121 COPY_INSTEAD_OF_MOVE cid#1556184 COPY_INSTEAD_OF_MOVE cid#1556399 COPY_INSTEAD_OF_MOVE cid#1556405 COPY_INSTEAD_OF_MOVE cid#1556419 COPY_INSTEAD_OF_MOVE cid#1556421 COPY_INSTEAD_OF_MOVE cid#1556444 COPY_INSTEAD_OF_MOVE cid#1556448 COPY_INSTEAD_OF_MOVE cid#1556457 COPY_INSTEAD_OF_MOVE cid#1556468 COPY_INSTEAD_OF_MOVE Change-Id: I1f352682daebd4e3ed2e7fe669aa0943dcc33edd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171372 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'slideshow/source')
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx2
-rw-r--r--slideshow/source/engine/slide/layermanager.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
index cdeb03e34f7d..3b08dae0ff18 100644
--- a/slideshow/source/engine/shapes/drawshape.cxx
+++ b/slideshow/source/engine/shapes/drawshape.cxx
@@ -1152,7 +1152,7 @@ namespace slideshow::internal
if( pSubset )
{
- o_rSubset = pSubset;
+ o_rSubset = std::move(pSubset);
// reusing existing subset
}
diff --git a/slideshow/source/engine/slide/layermanager.cxx b/slideshow/source/engine/slide/layermanager.cxx
index 8f6b7163c17b..4d722cb61e32 100644
--- a/slideshow/source/engine/slide/layermanager.cxx
+++ b/slideshow/source/engine/slide/layermanager.cxx
@@ -523,7 +523,7 @@ namespace slideshow::internal
LayerSharedPtr pLayer = rShape.second.lock();
if( pLayer != pCurrLayer )
{
- pCurrLayer = pLayer;
+ pCurrLayer = std::move(pLayer);
bIsCurrLayerUpdating = pCurrLayer->isUpdatePending();
if( bIsCurrLayerUpdating )