From e5fa1aa39cd2a621c1618abcf6e4ff040c97a569 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 22 Jan 2021 21:08:45 +0100 Subject: fix -Wmaybe-uninitialized Change-Id: I0dc16e51ea45069ae207c6440db879143d89cf2c --- writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 19dc3bb917e0..70d0e7a6a816 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -1674,7 +1674,7 @@ void OOXMLFastContextHandlerShape::sendShape( Token_t Element ) if (mnTableDepth > 0 && mbLayoutInCell) //if we had a table { uno::Reference 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) -- cgit