diff options
author | 4k5h1t <ask160203@gmail.com> | 2021-08-30 17:20:45 +0530 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-10-27 00:01:54 +0200 |
commit | 179e0c0cc5d3fd9610574e45a5204584f0e39176 (patch) | |
tree | a5dd539ec54e8ac9eb2d2b381fc2d2e6351621cb /chart2/qa | |
parent | 96f97eb05fc32654db4ba836c794b74d502b166d (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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; |