chart2/qa/extras/chart2export.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 179e0c0cc5d3fd9610574e45a5204584f0e39176 Author: 4k5h1t <[email protected]> AuthorDate: Mon Aug 30 17:20:45 2021 +0530 Commit: Xisco Fauli <[email protected]> CommitDate: Wed Oct 27 00:01:54 2021 +0200 tdf#141908: CppUnittests: replace usage of sal_Int32 with colors Change-Id: Ic87c8e57a6b530a742a6bf3916c7a944e1bed2b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121306 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 608905e59328..78529b9423c9 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -905,7 +905,7 @@ void Chart2ExportTest::testDataLabelBordersDOCX() { sal_Int32 mnIndex; css::drawing::LineStyle meStyle; - sal_Int32 mnColor; + Color mnColor; }; struct @@ -952,7 +952,7 @@ void Chart2ExportTest::testDataLabelBordersDOCX() xPropSet->getPropertyValue(CHART_UNONAME_LABEL_BORDER_WIDTH) >>= nWidth; CPPUNIT_ASSERT(nWidth > 0); - sal_Int32 nColor = -1; + Color nColor; xPropSet->getPropertyValue(CHART_UNONAME_LABEL_BORDER_COLOR) >>= nColor; CPPUNIT_ASSERT_EQUAL_MESSAGE("Border color is wrong.", aDataPoints[i].mnColor, nColor); } @@ -979,9 +979,9 @@ void Chart2ExportTest::testDataLabelBordersDOCX() xPropSet->getPropertyValue(CHART_UNONAME_LABEL_BORDER_WIDTH) >>= nWidth; CPPUNIT_ASSERT(nWidth > 0); - sal_Int32 nColor = -1; + Color nColor; xPropSet->getPropertyValue(CHART_UNONAME_LABEL_BORDER_COLOR) >>= nColor; - CPPUNIT_ASSERT_EQUAL_MESSAGE("Border color should be green.", sal_Int32(0x0000FF00), nColor); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Border color should be green.", COL_LIGHTGREEN, nColor); } } aTest;
