diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-05-13 14:17:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-05-13 14:17:24 +0200 |
commit | ddb579666ce8b508ebb37f74f2d5d365047026f5 (patch) | |
tree | 9f78eac28be551283fec189a92efbeadae1ab0f6 /oox | |
parent | 5338d80a98fb5f97e001c4f6c008ece03c7ae153 (diff) |
-Werror=maybe-uninitialized
Change-Id: I320e08d7d83727a93e0644db80943bc2bb896222
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 4 | ||||
-rw-r--r-- | oox/source/export/drawingml.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 32edd256cd9b..0921156771d7 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2637,7 +2637,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b pFS->singleElement( FSNS( XML_c, XML_errDir ), XML_val, bYError ? "y" : "x", FSEND ); - bool bPositive, bNegative; + bool bPositive = false, bNegative = false; xErrorBarProps->getPropertyValue("ShowPositiveError") >>= bPositive; xErrorBarProps->getPropertyValue("ShowNegativeError") >>= bNegative; const char* pErrBarType; @@ -2657,7 +2657,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b XML_val, pErrBarType, FSEND ); - sal_Int32 nErrorBarStyle; + sal_Int32 nErrorBarStyle = cssc::ErrorBarStyle::NONE; xErrorBarProps->getPropertyValue("ErrorBarStyle") >>= nErrorBarStyle; const char* pErrorBarStyle = getErrorBarStyle(nErrorBarStyle); pFS->singleElement( FSNS( XML_c, XML_errValType ), diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 3157eac416c7..b0831125c346 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -1528,7 +1528,7 @@ void DrawingML::WriteFill( Reference< XPropertySet > xPropSet ) if ( aFillStyle == FillStyle_SOLID && GetProperty( xPropSet, "FillTransparence" ) ) { // map full transparent background to no fill - sal_Int16 nVal; + sal_Int16 nVal = 0; xPropSet->getPropertyValue( "FillTransparence" ) >>= nVal; if ( nVal == 100 ) aFillStyle = FillStyle_NONE; |