summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-03-23 12:47:57 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-03-23 14:07:56 +0100
commit339c9c2f66c04592f333601aa70c6da3f7cac20e (patch)
tree4c0bc1fe8485e2b386d338ffeaf2959700c7dea3
parent190f81e34d918da289310a90416f9b6b7be7295f (diff)
writerfilter: GCC 9.2.1 -Og -Werror=maybe-uninitialized
This one isn't GCC's fault, not obvious that the any must contain a bool. Change-Id: Iad94dc5bd1a010be1c22e527e0d14c027f0dcf60 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90910 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 9e76c5259618..fa6d76f13627 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1773,7 +1773,7 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap, con
std::optional<PropertyMap::Property> pHidden;
if ( !m_aAnchoredObjectAnchors.empty() && (pHidden = pParaContext->getProperty(PROP_CHAR_HIDDEN)) )
{
- bool bIsHidden;
+ bool bIsHidden = {}; // -Werror=maybe-uninitialized
pHidden->second >>= bIsHidden;
if (bIsHidden)
{