diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 10:03:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 16:29:13 +0100 |
commit | 2daceb87b9e14868833fa746ec6efe93fc2dfadb (patch) | |
tree | 3159b323b9d6f8fec828e8c449b774945db4c10a /chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx | |
parent | check for self-assign (diff) | |
download | core-2daceb87b9e14868833fa746ec6efe93fc2dfadb.tar.gz core-2daceb87b9e14868833fa746ec6efe93fc2dfadb.zip |
clang: Uninitialized argument value
Change-Id: Id65c5815185cf022171e3523c6ad92545830104c
Diffstat (limited to 'chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx')
-rw-r--r-- | chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx index e77860442c95..43d0c06d2187 100644 --- a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx @@ -198,7 +198,7 @@ bool ErrorBarItemConverter::ApplySpecialItem( double fValue = static_cast< const SvxDoubleItem & >( rItemSet.Get( nWhichId )).GetValue(); - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( xErrorBarProp, fPos, fNeg ); if( ! ( ::rtl::math::approxEqual( fPos, fValue ) && @@ -216,7 +216,7 @@ bool ErrorBarItemConverter::ApplySpecialItem( double fValue = static_cast< const SvxDoubleItem & >( rItemSet.Get( nWhichId )).GetValue(); - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( GetPropertySet(), fPos, fNeg ); if( ! ::rtl::math::approxEqual( fPos, fValue )) @@ -234,7 +234,7 @@ bool ErrorBarItemConverter::ApplySpecialItem( double fValue = static_cast< const SvxDoubleItem & >( rItemSet.Get( nWhichId )).GetValue(); - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( xErrorBarProp, fPos, fNeg ); if( ! ::rtl::math::approxEqual( fNeg, fValue )) @@ -256,7 +256,7 @@ bool ErrorBarItemConverter::ApplySpecialItem( bool bNewIndPos = (eIndicate == CHINDICATE_BOTH || eIndicate == CHINDICATE_UP ); bool bNewIndNeg = (eIndicate == CHINDICATE_BOTH || eIndicate == CHINDICATE_DOWN ); - bool bShowPos, bShowNeg; + bool bShowPos(false), bShowNeg(false); lcl_getErrorIndicatorValues( xErrorBarProp, bShowPos, bShowNeg ); if( ( bShowPos != bNewIndPos || @@ -369,7 +369,7 @@ void ErrorBarItemConverter::FillSpecialItem( case SCHATTR_STAT_PERCENT: { - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( GetPropertySet(), fPos, fNeg ); rOutItemSet.Put( SvxDoubleItem( ( fPos + fNeg ) / 2.0, nWhichId )); } @@ -377,7 +377,7 @@ void ErrorBarItemConverter::FillSpecialItem( case SCHATTR_STAT_BIGERROR: { - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( GetPropertySet(), fPos, fNeg ); rOutItemSet.Put( SvxDoubleItem( ( fPos + fNeg ) / 2.0, nWhichId )); } @@ -385,7 +385,7 @@ void ErrorBarItemConverter::FillSpecialItem( case SCHATTR_STAT_CONSTPLUS: { - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( GetPropertySet(), fPos, fNeg ); rOutItemSet.Put( SvxDoubleItem( fPos, nWhichId )); } @@ -393,7 +393,7 @@ void ErrorBarItemConverter::FillSpecialItem( case SCHATTR_STAT_CONSTMINUS: { - double fPos, fNeg; + double fPos(0.0), fNeg(0.0); lcl_getErrorValues( GetPropertySet(), fPos, fNeg ); rOutItemSet.Put( SvxDoubleItem( fNeg, nWhichId )); } @@ -402,7 +402,7 @@ void ErrorBarItemConverter::FillSpecialItem( case SCHATTR_STAT_INDICATE: { SvxChartIndicate eIndicate = CHINDICATE_BOTH; - bool bShowPos, bShowNeg; + bool bShowPos(false), bShowNeg(false); lcl_getErrorIndicatorValues( GetPropertySet(), bShowPos, bShowNeg ); if( bShowPos ) |