[Libreoffice-commits] core.git: xmloff/source
Stephan Bergmann
sbergman at redhat.com
Tue May 3 07:41:20 UTC 2016
xmloff/source/text/XMLTextHeaderFooterContext.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 388ffd22b1a1cba175521153b3427672c74e31e6
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue May 3 09:40:56 2016 +0200
-Werror=maybe-uninitialized
Change-Id: I137814b80790b2cb4c8a2a2b78048024db0b4f86
diff --git a/xmloff/source/text/XMLTextHeaderFooterContext.cxx b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
index dd14bf7..9074491 100644
--- a/xmloff/source/text/XMLTextHeaderFooterContext.cxx
+++ b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
@@ -65,7 +65,7 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport, sa
if (bLeft)
{
aAny = xPropSet->getPropertyValue( sShareContent );
- bool bShared;
+ bool bShared = bool();
if (!(aAny >>= bShared))
assert(false); // should return a value!
if( bShared )
@@ -77,7 +77,7 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport, sa
if (bFirst)
{
aAny = xPropSet->getPropertyValue( sShareContentFirst );
- bool bSharedFirst;
+ bool bSharedFirst = bool();
if (!(aAny >>= bSharedFirst))
assert(false); // should return a value!
if( bSharedFirst )
More information about the Libreoffice-commits
mailing list