summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-28 20:38:57 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-29 09:25:43 +0100
commit01b6f6936dbd1a6563aa071d5856f53f16e40b1a (patch)
tree07c2b23b937905342a9fc5ae65cb0c774f8d4768
parente5a1742dcd8394e5fa98b32634b6dcc7eae9d565 (diff)
cid#1556968 COPY_INSTEAD_OF_MOVE
and cid#1557514 COPY_INSTEAD_OF_MOVE Change-Id: Ie419092ef6c00039a8799bf208fd998001c108ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175738 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--oox/source/drawingml/graphicshapecontext.cxx2
-rw-r--r--oox/source/drawingml/misccontexts.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/graphicshapecontext.cxx b/oox/source/drawingml/graphicshapecontext.cxx
index 85de7df3fffc..9acdc6b54e16 100644
--- a/oox/source/drawingml/graphicshapecontext.cxx
+++ b/oox/source/drawingml/graphicshapecontext.cxx
@@ -99,7 +99,7 @@ ContextHandlerRef GraphicShapeContext::onCreateContext( sal_Int32 aElementToken,
Reference<XInputStream> xMediaStream = lcl_GetMediaStream(rPath, getFilter());
if (xMediaStream.is()) // embedded media file
{
- mpShapePtr->getGraphicProperties().m_xMediaStream = xMediaStream;
+ mpShapePtr->getGraphicProperties().m_xMediaStream = std::move(xMediaStream);
mpShapePtr->getGraphicProperties().m_sMediaPackageURL
= lcl_GetMediaReference(rPath);
}
diff --git a/oox/source/drawingml/misccontexts.cxx b/oox/source/drawingml/misccontexts.cxx
index e080f3840e90..ccbff30df1a3 100644
--- a/oox/source/drawingml/misccontexts.cxx
+++ b/oox/source/drawingml/misccontexts.cxx
@@ -306,7 +306,7 @@ BlipContext::BlipContext(ContextHandler2Helper const & rParent, const AttributeL
auto xGraphic = getFilter().getGraphicHelper().importEmbeddedGraphic(aFragmentPath);
mrBlipProps.mxFillGraphic = xGraphic;
if (mpBlipFill)
- mpBlipFill->mxGraphic = xGraphic;
+ mpBlipFill->mxGraphic = std::move(xGraphic);
}
}
else if( rAttribs.hasAttribute( R_TOKEN( link ) ) )