Kaydet (Commit) 0c3a839f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror=maybe-uninitialized

Change-Id: I4959f52510b814f4becb47105c7fd61188ab0e31
üst 10e922da
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment