diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-30 09:05:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-30 12:20:35 +0200 |
commit | 72499d57daf8f53dae268b2160fa0585ed0bd36d (patch) | |
tree | fbdfb0d99139ae22bc3fe4f0fa444f5c24291012 /oox | |
parent | 254d0e17dcd9a6bce536057b020292ac0ab2e48e (diff) |
ofz#46160 Use-of-uninitialized-value
Change-Id: Ic39fd3579623563adf16025442bb634a273decb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132298
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 2ef801c5ee08..12eb72d40542 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -1654,30 +1654,28 @@ Reference< XShape > const & Shape::createAndInsert( if (bIsConnectorShape) { - ConnectorType aConnectorType; sal_Int32 nType = mpCustomShapePropertiesPtr->getShapePresetType(); switch (nType) { case XML_line: case XML_straightConnector1: - aConnectorType = ConnectorType_LINE; + xSet->setPropertyValue("EdgeKind", Any(ConnectorType_LINE)); break; case XML_bentConnector2: case XML_bentConnector3: case XML_bentConnector4: case XML_bentConnector5: - aConnectorType = ConnectorType_STANDARD; + xSet->setPropertyValue("EdgeKind", Any(ConnectorType_STANDARD)); break; case XML_curvedConnector2: case XML_curvedConnector3: case XML_curvedConnector4: case XML_curvedConnector5: - aConnectorType = ConnectorType_CURVE; + xSet->setPropertyValue("EdgeKind", Any(ConnectorType_CURVE)); break; default: break; } - xSet->setPropertyValue("EdgeKind", Any(aConnectorType)); } if( bIsCustomShape ) |