diff options
author | varshneydevansh <varshney.devansh614@gmail.com> | 2024-02-07 14:23:50 +0530 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-02-10 11:47:05 +0100 |
commit | b370357b40b55cece8407eea2dc0014a5aec0d17 (patch) | |
tree | 0e074e1299e68f08abe3c980b135f4936bd53628 /svx/qa | |
parent | 49111fe70fec5a5f074e6c1b1dd60f6b57139a25 (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 'svx/qa')
-rw-r--r-- | svx/qa/unit/unodraw.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/qa/unit/unodraw.cxx b/svx/qa/unit/unodraw.cxx index a7417356e13a..0d6f35e5c9cd 100644 --- a/svx/qa/unit/unodraw.cxx +++ b/svx/qa/unit/unodraw.cxx @@ -120,10 +120,10 @@ CPPUNIT_TEST_FIXTURE(UnodrawTest, testTableShadowDirect) // Without the accompanying fix in place, this test would have failed with throwing a // beans.UnknownPropertyException, as shadow-as-direct-formatting on tables were not possible. xShapeProps->setPropertyValue("Shadow", uno::Any(true)); - sal_Int32 nRed = 0xff0000; + Color nRed = COL_LIGHTRED; xShapeProps->setPropertyValue("ShadowColor", uno::Any(nRed)); CPPUNIT_ASSERT(xShapeProps->getPropertyValue("ShadowColor") >>= nRed); - CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(0xff0000), nRed); + CPPUNIT_ASSERT_EQUAL(COL_LIGHTRED, nRed); // Add text. uno::Reference<table::XCellRange> xTable(xShapeProps->getPropertyValue("Model"), |