oox/source/drawingml/graphicshapecontext.cxx |    2 +-
 oox/source/drawingml/misccontexts.cxx        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 01b6f6936dbd1a6563aa071d5856f53f16e40b1a
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Oct 28 20:38:57 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Oct 29 09:25:43 2024 +0100

    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.mcnam...@collabora.com>

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 ) ) )

Reply via email to