[Libreoffice-commits] core.git: 2 commits - chart2/source

Caolán McNamara caolanm at redhat.com
Wed Jun 24 06:05:18 PDT 2015


 chart2/source/tools/ExponentialRegressionCurveCalculator.cxx |    7 ++++---
 chart2/source/tools/PotentialRegressionCurveCalculator.cxx   |    7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

New commits:
commit 95f884618698ba7ff1ca98be5b844f8db5a4e43c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 23 17:19:56 2015 +0100

    coverity#1308146 Uninitialized scalar field
    
    Change-Id: Ida37b83fed0ff5f76fab38153d2e8021a398faa1

diff --git a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
index 0e4f4cd..c8a4b26 100644
--- a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
@@ -29,9 +29,10 @@ using namespace ::com::sun::star;
 namespace chart
 {
 
-PotentialRegressionCurveCalculator::PotentialRegressionCurveCalculator() :
-        m_fSlope( 0.0 ),
-        m_fIntercept( 0.0 )
+PotentialRegressionCurveCalculator::PotentialRegressionCurveCalculator()
+    : m_fSlope(0.0)
+    , m_fIntercept(0.0)
+    , m_fSign(1.0)
 {
     ::rtl::math::setNan( & m_fSlope );
     ::rtl::math::setNan( & m_fIntercept );
commit a726ba2a7a429805fdcaa44fc9f95b853de502bb
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 23 17:19:12 2015 +0100

    coverity#1308147 Uninitialized scalar field
    
    Change-Id: I1021b02aa2dc9afffa34d52ddfc71f683a594a0e

diff --git a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
index 2e1dedd..a5cf104 100644
--- a/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/ExponentialRegressionCurveCalculator.cxx
@@ -29,9 +29,10 @@ using namespace ::com::sun::star;
 namespace chart
 {
 
-ExponentialRegressionCurveCalculator::ExponentialRegressionCurveCalculator() :
-        m_fLogSlope( 0.0 ),
-        m_fLogIntercept( 0.0 )
+ExponentialRegressionCurveCalculator::ExponentialRegressionCurveCalculator()
+    : m_fLogSlope(0.0)
+    , m_fLogIntercept(0.0)
+    , m_fSign(1.0)
 {
     ::rtl::math::setNan( & m_fLogSlope );
     ::rtl::math::setNan( & m_fLogIntercept );


More information about the Libreoffice-commits mailing list