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:
@@ -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" ) );
|
||||
|
||||
Reference in New Issue
Block a user