From ba43b0cb7a62f34fcda214d43122c7c66df2e5a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 8 Mar 2018 10:06:35 +0200 Subject: drop getColor() method of Color no longer necessary Change-Id: I9e0fcea1134e8c5e27f9effbb5eb79fe5446e33d Reviewed-on: https://gerrit.libreoffice.org/50925 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/qa/extras/new_cond_format.cxx | 12 ++++++------ sc/qa/unit/subsequent_export-test.cxx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sc') diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx index b6587e6059e7..e3bf1e2a44ad 100644 --- a/sc/qa/extras/new_cond_format.cxx +++ b/sc/qa/extras/new_cond_format.cxx @@ -201,26 +201,26 @@ void testUseGradient(uno::Reference const & xPropSet, bool void testPositiveColor(uno::Reference const & xPropSet, Color aColor) { - sal_Int32 nColor = 0; + ::Color nColor; uno::Any aAny = xPropSet->getPropertyValue("Color"); CPPUNIT_ASSERT(aAny >>= nColor); - CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); + CPPUNIT_ASSERT_EQUAL(aColor, nColor); } void testNegativeColor(uno::Reference const & xPropSet, Color aColor) { - sal_Int32 nColor = 0; + ::Color nColor; uno::Any aAny = xPropSet->getPropertyValue("NegativeColor"); CPPUNIT_ASSERT(aAny >>= nColor); - CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); + CPPUNIT_ASSERT_EQUAL(aColor, nColor); } void testAxisColor(uno::Reference const & xPropSet, Color aColor) { - sal_Int32 nColor = 0; + ::Color nColor; uno::Any aAny = xPropSet->getPropertyValue("AxisColor"); CPPUNIT_ASSERT(aAny >>= nColor); - CPPUNIT_ASSERT_EQUAL(aColor.GetColor(), sal_uInt32(nColor)); + CPPUNIT_ASSERT_EQUAL(aColor, nColor); } void testDataBarEntryValue(uno::Reference const & xEntry, diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index fe073203818b..688378166014 100644 --- a/sc/qa/unit/subsequent_export-test.cxx +++ b/sc/qa/unit/subsequent_export-test.cxx @@ -2691,7 +2691,7 @@ void ScExportTest::testSheetTabColorsXLSX() for (size_t i = 0; i < SAL_N_ELEMENTS(aXclColors); ++i) { - if (aXclColors[i] != rDoc.GetTabBgColor(i).GetColor()) + if (aXclColors[i] != rDoc.GetTabBgColor(i)) { cerr << "wrong sheet color for sheet " << i << endl; return false; -- cgit