summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorcutamar <amar.cutura@gmail.com>2022-08-28 02:42:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-08-30 22:33:06 +0200
commit45394fcf7e45f623add7ed3c6dc43e6d6f89158c (patch)
tree5bea38fed40dcf30b461e46fe74af027d43b0654 /writerperfect
parent4343432d423b5d92ca2b4ff5037eb29c8ac080ff (diff)
tdf#141908 Replace usage of sal_Int32 with Color in unit tests
Change-Id: Ifb5ff2e6d5ed28bcb9e190d7f2deaaa970693cbc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138938 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/CppunitTest_writerperfect_import.mk1
-rw-r--r--writerperfect/qa/unit/ImportTest.cxx4
2 files changed, 3 insertions, 2 deletions
diff --git a/writerperfect/CppunitTest_writerperfect_import.mk b/writerperfect/CppunitTest_writerperfect_import.mk
index fe47a54c8533..f160c9e8de8b 100644
--- a/writerperfect/CppunitTest_writerperfect_import.mk
+++ b/writerperfect/CppunitTest_writerperfect_import.mk
@@ -22,6 +22,7 @@ $(eval $(call gb_CppunitTest_use_libraries,writerperfect_import,\
cppu \
sal \
test \
+ tl \
unotest \
utl \
wpftqahelper \
diff --git a/writerperfect/qa/unit/ImportTest.cxx b/writerperfect/qa/unit/ImportTest.cxx
index ef58118b0bb8..dcb1b3690558 100644
--- a/writerperfect/qa/unit/ImportTest.cxx
+++ b/writerperfect/qa/unit/ImportTest.cxx
@@ -83,9 +83,9 @@ void ImportTest::testWK3WithFM3()
CPPUNIT_ASSERT(xSheet.is());
uno::Reference<beans::XPropertySet> xCellProps(xSheet->getCellByPosition(1, 1), UNO_QUERY);
CPPUNIT_ASSERT(xCellProps.is());
- sal_Int32 nCharColor = 0;
+ Color nCharColor;
CPPUNIT_ASSERT(xCellProps->getPropertyValue("CharColor") >>= nCharColor);
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x0000ff), nCharColor); // blue text
+ CPPUNIT_ASSERT_EQUAL(COL_LIGHTBLUE, nCharColor); // blue text
}
WpftLoader ImportTest::createCalcLoader(std::u16string_view rFile) const