From c8b8a2c2cb34a1ae0b0aeee0564b39260258f184 Mon Sep 17 00:00:00 2001 From: Rafał Dobrakowski Date: Thu, 15 Feb 2024 21:07:59 +0100 Subject: tdf#141908 - CppUnittests: replace usage of sal_Int32 with colors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Conversion of hex/dec colour notation (example entry Color( 255, 255, 255), Color(0xFFFFFF) - COL_WHITE) For the other available colour definitions. Change-Id: I9eed0cd64adcbc8d25e1c22143a000906a457586 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163729 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- sc/qa/extras/macros-test.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/qa/extras') diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx index 61c7fdad12a5..765c2f1cb715 100644 --- a/sc/qa/extras/macros-test.cxx +++ b/sc/qa/extras/macros-test.cxx @@ -724,7 +724,7 @@ CPPUNIT_TEST_FIXTURE(ScMacrosTest, testTdf107572) const SvxBrushItem& rBackground = static_cast(rItem); const Color& rColor = rBackground.GetColor(); - CPPUNIT_ASSERT_EQUAL(Color(0x0, 0x0, 0x80), rColor); + CPPUNIT_ASSERT_EQUAL(COL_BLUE, rColor); } for (SCROW i = 1; i < 13; ++i) @@ -741,7 +741,7 @@ CPPUNIT_TEST_FIXTURE(ScMacrosTest, testTdf107572) const SvxBrushItem& rBackground2 = static_cast(rItem2); const Color& rColor2 = rBackground2.GetColor(); - CPPUNIT_ASSERT_EQUAL(Color(0xcc, 0xcc, 0xcc), rColor2); + CPPUNIT_ASSERT_EQUAL(COL_GRAY3, rColor2); } } -- cgit