diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-01-22 21:08:45 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-03-22 22:34:04 +0100 |
commit | 5c90f4435c8210280676a2e40b8735d9fff1142e (patch) | |
tree | 16d1334c638a78bcf600437caa0207e3c5ee0dc1 | |
parent | 54d9c0d3e7cfd2776987535b45b20376a62ecd59 (diff) |
fix -Wmaybe-uninitialized
Change-Id: I0dc16e51ea45069ae207c6440db879143d89cf2c
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index d64192c115e4..2d3ea9f328a9 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -1686,7 +1686,7 @@ void OOXMLFastContextHandlerShape::sendShape( Token_t Element ) if (mnTableDepth > 0 && mbLayoutInCell) //if we had a table { uno::Reference<beans::XPropertySet> xShapePropSet(xShape, uno::UNO_QUERY); - sal_Int16 nCurrentHorOriRel; //A temp variable for storaging the current setting + sal_Int16 nCurrentHorOriRel = {}; // spurious -Werror=maybe-uninitialized xShapePropSet->getPropertyValue("HoriOrientRelation") >>= nCurrentHorOriRel; //and the correction: if (nCurrentHorOriRel == com::sun::star::text::RelOrientation::PAGE_FRAME) |