summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorvarshneydevansh <varshney.devansh614@gmail.com>2024-02-07 14:23:50 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-02-10 11:47:05 +0100
commitb370357b40b55cece8407eea2dc0014a5aec0d17 (patch)
tree0e074e1299e68f08abe3c980b135f4936bd53628 /oox
parent49111fe70fec5a5f074e6c1b1dd60f6b57139a25 (diff)
tdf#141908: replace usage of sal_Int32 with colors
Change-Id: I71d94239c155f41d4535c023ea3aa8f974fcf2da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163082 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'oox')
-rw-r--r--oox/qa/unit/drawingml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/qa/unit/drawingml.cxx b/oox/qa/unit/drawingml.cxx
index 6ae4d08f48a6..fa3e39c1bbff 100644
--- a/oox/qa/unit/drawingml.cxx
+++ b/oox/qa/unit/drawingml.cxx
@@ -378,13 +378,13 @@ CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testChartThemeOverride)
uno::UNO_QUERY);
uno::Reference<beans::XPropertySet> xPortion(xPara->createEnumeration()->nextElement(),
uno::UNO_QUERY);
- sal_Int32 nActual{ 0 };
+ Color nActual{ 0 };
xPortion->getPropertyValue("CharColor") >>= nActual;
// Without the accompanying fix in place, this test would have failed with:
// - Expected: 4485828 (0x4472c4)
// - Actual : 16711680 (0xff0000)
// i.e. the text color was red, not blue.
- CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0x4472C4), nActual);
+ CPPUNIT_ASSERT_EQUAL(Color(0x4472C4), nActual);
}
CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testPptxTheme)