summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-26 10:03:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-26 16:29:13 +0100
commit2daceb87b9e14868833fa746ec6efe93fc2dfadb (patch)
tree3159b323b9d6f8fec828e8c449b774945db4c10a /chart2
parentcd29cab883a6a7a0e028ca6756daa2f3cc8d51f6 (diff)
clang: Uninitialized argument value
Change-Id: Id65c5815185cf022171e3523c6ad92545830104c
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx18
-rw-r--r--chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx18
2 files changed, 18 insertions, 18 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 )
diff --git a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
index 17bb183ccc66..e5a9f3519367 100644
--- a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
@@ -392,7 +392,7 @@ bool StatisticsItemConverter::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( bOldHasErrorBar &&
@@ -418,7 +418,7 @@ bool StatisticsItemConverter::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( bOldHasErrorBar &&
@@ -441,7 +441,7 @@ bool StatisticsItemConverter::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( bOldHasErrorBar &&
@@ -573,7 +573,7 @@ bool StatisticsItemConverter::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( bOldHasErrorBar &&
@@ -704,7 +704,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno::Reference< beans::XPropertySet > xErrorBarProp( lcl_GetErrorBar( GetPropertySet(),bYError));
if( xErrorBarProp.is())
{
- double fPos, fNeg;
+ double fPos(0.0), fNeg(0.0);
lcl_getErrorValues( xErrorBarProp, fPos, fNeg );
rOutItemSet.Put( SvxDoubleItem( ( fPos + fNeg ) / 2.0, nWhichId ));
}
@@ -718,7 +718,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno::Reference< beans::XPropertySet > xErrorBarProp( lcl_GetErrorBar( GetPropertySet(),bYError));
if( xErrorBarProp.is())
{
- double fPos, fNeg;
+ double fPos(0.0), fNeg(0.0);
lcl_getErrorValues( xErrorBarProp, fPos, fNeg );
rOutItemSet.Put( SvxDoubleItem( ( fPos + fNeg ) / 2.0, nWhichId ));
}
@@ -732,7 +732,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno::Reference< beans::XPropertySet > xErrorBarProp( lcl_GetErrorBar( GetPropertySet(),bYError));
if( xErrorBarProp.is())
{
- double fPos, fNeg;
+ double fPos(0.0), fNeg(0.0);
lcl_getErrorValues( xErrorBarProp, fPos, fNeg );
rOutItemSet.Put( SvxDoubleItem( fPos, nWhichId ));
}
@@ -746,7 +746,7 @@ void StatisticsItemConverter::FillSpecialItem(
uno::Reference< beans::XPropertySet > xErrorBarProp( lcl_GetErrorBar( GetPropertySet(),bYError));
if( xErrorBarProp.is())
{
- double fPos, fNeg;
+ double fPos(0.0), fNeg(0.0);
lcl_getErrorValues( xErrorBarProp, fPos, fNeg );
rOutItemSet.Put( SvxDoubleItem( fNeg, nWhichId ));
}
@@ -836,7 +836,7 @@ void StatisticsItemConverter::FillSpecialItem(
SvxChartIndicate eIndicate = CHINDICATE_BOTH;
if( xErrorBarProp.is())
{
- bool bShowPos, bShowNeg;
+ bool bShowPos(false), bShowNeg(false);
lcl_getErrorIndicatorValues( xErrorBarProp, bShowPos, bShowNeg );
if( bShowPos )