summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-10 11:02:15 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-10 17:28:56 +0200
commite6c4d733f15bb779f02afa910149408df8c7fda2 (patch)
tree992d9050d7e423eca07c28d38e83bb083b9b38bf /oox
parent8afc4d10f917cfb5faadac0a1dd8856373693630 (diff)
cid#1556474 COPY_INSTEAD_OF_MOVE
and cid#1557319 COPY_INSTEAD_OF_MOVE cid#1557320 COPY_INSTEAD_OF_MOVE cid#1558101 COPY_INSTEAD_OF_MOVE cid#1606536 COPY_INSTEAD_OF_MOVE Change-Id: Ibe10ee3fad7f6ca1f3c5b316fdafe4bf15f0ead7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170280 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/diagram/layoutnodecontext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/diagram/layoutnodecontext.cxx b/oox/source/drawingml/diagram/layoutnodecontext.cxx
index d822805ed2d6..ae893ed64cfa 100644
--- a/oox/source/drawingml/diagram/layoutnodecontext.cxx
+++ b/oox/source/drawingml/diagram/layoutnodecontext.cxx
@@ -244,7 +244,7 @@ LayoutNodeContext::onCreateContext( ::sal_Int32 aElement,
ShapeAtomPtr pAtom = std::make_shared<ShapeAtom>(mpNode->getLayoutNode(), pShape);
LayoutAtom::connect(mpNode, pAtom);
- return new ShapeContext( *this, ShapePtr(), pShape );
+ return new ShapeContext( *this, ShapePtr(), std::move(pShape) );
}
case DGM_TOKEN( extLst ):
return nullptr;