-Werror=maybe-uninitialized

Change-Id: I137814b80790b2cb4c8a2a2b78048024db0b4f86
This commit is contained in:
Stephan Bergmann 2016-05-03 09:40:56 +02:00
parent 82e9cfc991
commit 388ffd22b1

View file

@ -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 )