diff options
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 2 | ||||
-rw-r--r-- | chart2/qa/extras/chart2import.cxx | 2 | ||||
-rw-r--r-- | oox/source/export/chartexport.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 3e645abe33f3..3a6cd81df77b 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -49,7 +49,7 @@ void testErrorBar( Reference< XPropertySet > xErrorBar ) CPPUNIT_ASSERT( xErrorBar->getPropertyValue("ShowNegativeError") >>= bShowNegative); CPPUNIT_ASSERT(bShowNegative); - double nVal; + double nVal = 0.0; CPPUNIT_ASSERT(xErrorBar->getPropertyValue("PositiveError") >>= nVal); CPPUNIT_ASSERT_DOUBLES_EQUAL(nVal, 10.0, 1e-10); } diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx index decd18ed2b1a..074b23250570 100644 --- a/chart2/qa/extras/chart2import.cxx +++ b/chart2/qa/extras/chart2import.cxx @@ -56,7 +56,7 @@ void Chart2ImportTest::Fdo60083() static_cast<sal_Int32>(chart::ErrorBarStyle::RELATIVE), nErrorBarStyle); - double nVal; + double nVal = 0.0; CPPUNIT_ASSERT( xErrorBarYProps->getPropertyValue("PositiveError") >>= nVal); CPPUNIT_ASSERT_DOUBLES_EQUAL(5.0, nVal, 1e-8); diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 0921156771d7..c52a3b1ee0e8 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2684,7 +2684,7 @@ void ChartExport::exportErrorBar(Reference< XPropertySet> xErrorBarProps, bool b } else { - double nVal; + double nVal = 0.0; if(nErrorBarStyle == cssc::ErrorBarStyle::STANDARD_DEVIATION) { xErrorBarProps->getPropertyValue("Weight") >>= nVal; |