Kaydet (Commit) ddb57966 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror=maybe-uninitialized

Change-Id: I320e08d7d83727a93e0644db80943bc2bb896222
üst 5338d80a
...@@ -2637,7 +2637,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b ...@@ -2637,7 +2637,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b
pFS->singleElement( FSNS( XML_c, XML_errDir ), pFS->singleElement( FSNS( XML_c, XML_errDir ),
XML_val, bYError ? "y" : "x", XML_val, bYError ? "y" : "x",
FSEND ); FSEND );
bool bPositive, bNegative; bool bPositive = false, bNegative = false;
xErrorBarProps->getPropertyValue("ShowPositiveError") >>= bPositive; xErrorBarProps->getPropertyValue("ShowPositiveError") >>= bPositive;
xErrorBarProps->getPropertyValue("ShowNegativeError") >>= bNegative; xErrorBarProps->getPropertyValue("ShowNegativeError") >>= bNegative;
const char* pErrBarType; const char* pErrBarType;
...@@ -2657,7 +2657,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b ...@@ -2657,7 +2657,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b
XML_val, pErrBarType, XML_val, pErrBarType,
FSEND ); FSEND );
sal_Int32 nErrorBarStyle; sal_Int32 nErrorBarStyle = cssc::ErrorBarStyle::NONE;
xErrorBarProps->getPropertyValue("ErrorBarStyle") >>= nErrorBarStyle; xErrorBarProps->getPropertyValue("ErrorBarStyle") >>= nErrorBarStyle;
const char* pErrorBarStyle = getErrorBarStyle(nErrorBarStyle); const char* pErrorBarStyle = getErrorBarStyle(nErrorBarStyle);
pFS->singleElement( FSNS( XML_c, XML_errValType ), pFS->singleElement( FSNS( XML_c, XML_errValType ),
......
...@@ -1528,7 +1528,7 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet ) ...@@ -1528,7 +1528,7 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet )
if ( aFillStyle == FillStyle_SOLID && GetProperty( xPropSet, "FillTransparence" ) ) if ( aFillStyle == FillStyle_SOLID && GetProperty( xPropSet, "FillTransparence" ) )
{ {
// map full transparent background to no fill // map full transparent background to no fill
sal_Int16 nVal; sal_Int16 nVal = 0;
xPropSet->getPropertyValue( "FillTransparence" ) >>= nVal; xPropSet->getPropertyValue( "FillTransparence" ) >>= nVal;
if ( nVal == 100 ) if ( nVal == 100 )
aFillStyle = FillStyle_NONE; aFillStyle = FillStyle_NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment