summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-10 09:13:00 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-10 13:44:58 +0100
commit212bbbe5cafab06b408ddde930bf9c8d37b7c3aa (patch)
tree08b41d3e2e8fc88abea496776c62e9eb956f9a03 /oox
parentba3627ba899adb896855fddee9a0fdd8968b603a (diff)
cid#1546141 COPY_INSTEAD_OF_MOVE
and cid#1546004 COPY_INSTEAD_OF_MOVE cid#1545934 COPY_INSTEAD_OF_MOVE cid#1545563 COPY_INSTEAD_OF_MOVE cid#1545533 COPY_INSTEAD_OF_MOVE cid#1545529 COPY_INSTEAD_OF_MOVE cid#1545502 COPY_INSTEAD_OF_MOVE cid#1545499 COPY_INSTEAD_OF_MOVE cid#1545479 COPY_INSTEAD_OF_MOVE cid#1545344 COPY_INSTEAD_OF_MOVE cid#1545324 COPY_INSTEAD_OF_MOVE cid#1545313 COPY_INSTEAD_OF_MOVE cid#1545252 COPY_INSTEAD_OF_MOVE cid#1545186 COPY_INSTEAD_OF_MOVE Change-Id: I44a783876699f88c769f239ae84eb5cae44d5f07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161879 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/shape/WpgContext.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/oox/source/shape/WpgContext.cxx b/oox/source/shape/WpgContext.cxx
index 339e7a70eac5..ee9e58b7c18e 100644
--- a/oox/source/shape/WpgContext.cxx
+++ b/oox/source/shape/WpgContext.cxx
@@ -45,18 +45,19 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken
{
if (m_bFullWPGSupport)
{
- oox::drawingml::ShapePtr pShape = std::make_shared<oox::drawingml::Shape>(
- "com.sun.star.drawing.CustomShape", /*bDefaultHeight=*/false);
- return new oox::shape::WpsContext(*this, uno::Reference<drawing::XShape>(), mpShape,
- pShape);
+ return new oox::shape::WpsContext(
+ *this, uno::Reference<drawing::XShape>(), mpShape,
+ std::make_shared<oox::drawingml::Shape>("com.sun.star.drawing.CustomShape",
+ /*bDefaultHeight=*/false));
}
// Don't set default character height, Writer has its own way to set
// the default, and if we don't set it here, editeng properly inherits
// it.
- oox::drawingml::ShapePtr pShape = std::make_shared<oox::drawingml::Shape>(
- "com.sun.star.drawing.CustomShape", /*bDefaultHeight=*/false);
- return new oox::drawingml::ShapeContext(*this, mpShape, pShape);
+ return new oox::drawingml::ShapeContext(
+ *this, mpShape,
+ std::make_shared<oox::drawingml::Shape>("com.sun.star.drawing.CustomShape",
+ /*bDefaultHeight=*/false));
}
case XML_pic:
return new oox::drawingml::GraphicShapeContext(