cid#1693815: Variable copied when it could be moved

Change-Id: I4ec1098d2920d4a9ddb867635cf7abec8d3ef526
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205100
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2026-05-12 14:50:51 +02:00
parent 0d6ae1bb76
commit 8eafabe86c
+1 -1
View File
@@ -116,7 +116,7 @@ ContextHandlerRef ShapeGroupContext::onCreateContext( sal_Int32 aElementToken, c
// DiagramHelper model changes
pShape->setDiagramDataModelID(aModelID);
return new ShapeContext( *this, mpGroupShapePtr, pShape );
return new ShapeContext( *this, mpGroupShapePtr, std::move(pShape) );
}
case XML_pic: // CT_Picture
return new GraphicShapeContext( *this, mpGroupShapePtr, std::make_shared<Shape>( "com.sun.star.drawing.GraphicObjectShape" ) );