sw/qa/extras/unowriter/unowriter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 64fc701388d1dcf8ae36ba2cc73eb5416a7c3374 Author: Ankit_Jaipuriar <ankitjaipuria...@gmail.com> AuthorDate: Sat Sep 23 22:23:51 2023 +0530 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 3 10:09:41 2023 +0200 tdf#141908: CppUnittests: replace usage of sal_Int32 with colors Change-Id: I6c7d8d92fe6860cd213a3cbded2451e8788ae2f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157196 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/unowriter/unowriter.cxx b/sw/qa/extras/unowriter/unowriter.cxx index 429a8d4e0498..10f861a079c8 100644 --- a/sw/qa/extras/unowriter/unowriter.cxx +++ b/sw/qa/extras/unowriter/unowriter.cxx @@ -965,7 +965,7 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testChapterNumberingCharStyle) uno::Reference<beans::XPropertySet> xStyle( xDoc->createInstance("com.sun.star.style.CharacterStyle"), uno::UNO_QUERY); uno::Reference<container::XNamed> xStyleN(xStyle, uno::UNO_QUERY); - xStyle->setPropertyValue("CharColor", uno::Any(sal_Int32(0x00FF0000))); + xStyle->setPropertyValue("CharColor", uno::Any(COL_LIGHTRED)); uno::Reference<style::XStyleFamiliesSupplier> xSFS(mxComponent, uno::UNO_QUERY); uno::Reference<container::XNameContainer> xStyles( xSFS->getStyleFamilies()->getByName("CharacterStyles"), uno::UNO_QUERY); @@ -1189,13 +1189,13 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testTdf129841) xTableCellRange->getCellRangeByName("A1:A1"), css::uno::UNO_QUERY_THROW); static constexpr OUStringLiteral sBackColor = u"BackColor"; // Apply background color to table cursor, and read background color from cell range - css::uno::Any aRefColor(sal_Int32(0x00FF0000)); + css::uno::Any aRefColor(COL_LIGHTRED); xTableCursor->setPropertyValue(sBackColor, aRefColor); css::uno::Any aColor = xCellRange->getPropertyValue(sBackColor); // This failed CPPUNIT_ASSERT_EQUAL(aRefColor, aColor); // Now the other way round - aRefColor <<= sal_Int32(0x0000FF00); + aRefColor <<= COL_LIGHTGREEN; xCellRange->setPropertyValue(sBackColor, aRefColor); aColor = xTableCursor->getPropertyValue(sBackColor); CPPUNIT_ASSERT_EQUAL(aRefColor, aColor);