summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-05-13 15:01:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-05-13 15:02:22 +0200
commit0c3a839f1e1ca16c1f41002cf00c8e21f05dd01c (patch)
tree332f53031cf128757e475fafa50b1dcb064168d0 /chart2
parent10e922daecf9e0c0766a758100445064c565a5a7 (diff)
-Werror=maybe-uninitialized
Change-Id: I4959f52510b814f4becb47105c7fd61188ab0e31
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2export.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx
index ca7105c80c72..3e645abe33f3 100644
--- a/chart2/qa/extras/chart2export.cxx
+++ b/chart2/qa/extras/chart2export.cxx
@@ -39,15 +39,18 @@ namespace {
void testErrorBar( Reference< XPropertySet > xErrorBar )
{
sal_Int32 nErrorBarStyle;
- xErrorBar->getPropertyValue("ErrorBarStyle") >>= nErrorBarStyle;
+ CPPUNIT_ASSERT(
+ xErrorBar->getPropertyValue("ErrorBarStyle") >>= nErrorBarStyle);
CPPUNIT_ASSERT_EQUAL(nErrorBarStyle, chart::ErrorBarStyle::RELATIVE);
- bool bShowPositive, bShowNegative;
- xErrorBar->getPropertyValue("ShowPositiveError") >>= bShowPositive;
+ bool bShowPositive = bool(), bShowNegative = bool();
+ CPPUNIT_ASSERT(
+ xErrorBar->getPropertyValue("ShowPositiveError") >>= bShowPositive);
CPPUNIT_ASSERT(bShowPositive);
- xErrorBar->getPropertyValue("ShowNegativeError") >>= bShowNegative;
+ CPPUNIT_ASSERT(
+ xErrorBar->getPropertyValue("ShowNegativeError") >>= bShowNegative);
CPPUNIT_ASSERT(bShowNegative);
double nVal;
- xErrorBar->getPropertyValue("PositiveError") >>= nVal;
+ CPPUNIT_ASSERT(xErrorBar->getPropertyValue("PositiveError") >>= nVal);
CPPUNIT_ASSERT_DOUBLES_EQUAL(nVal, 10.0, 1e-10);
}