From 23b08449736ba825a9c582ba18b7a5fdba178e47 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 31 May 2018 13:20:41 +0200 Subject: loplugin: look for CPPUNIT_ASSERT_EQUALS with params swapped idea originally from either tml or moggi, can't remember which Change-Id: Id78d75035036d3aa1666e33469c6eeb38f9e624d Reviewed-on: https://gerrit.libreoffice.org/55126 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/qa/unit/helper/shared_test_impl.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/qa/unit/helper') diff --git a/sc/qa/unit/helper/shared_test_impl.hxx b/sc/qa/unit/helper/shared_test_impl.hxx index 344e932b0695..114f2571f610 100644 --- a/sc/qa/unit/helper/shared_test_impl.hxx +++ b/sc/qa/unit/helper/shared_test_impl.hxx @@ -64,7 +64,7 @@ void testDataBar_Impl(const ScDocument& rDoc) CPPUNIT_ASSERT_EQUAL(size_t(1), (*itr)->size()); const ScFormatEntry* pFormatEntry = (*itr)->GetEntry(0); - CPPUNIT_ASSERT_EQUAL(pFormatEntry->GetType(), ScFormatEntry::Type::Databar); + CPPUNIT_ASSERT_EQUAL(ScFormatEntry::Type::Databar, pFormatEntry->GetType()); const ScDataBarFormat* pDataBar = static_cast(pFormatEntry); CPPUNIT_ASSERT(pDataBar); const ScDataBarFormatData* pDataBarData = pDataBar->GetDataBarData(); @@ -101,7 +101,7 @@ void testColorScale2Entry_Impl(const ScDocument& rDoc) CPPUNIT_ASSERT_EQUAL(size_t(1), (*itr)->size()); const ScFormatEntry* pFormatEntry = (*itr)->GetEntry(0); - CPPUNIT_ASSERT_EQUAL(pFormatEntry->GetType(), ScFormatEntry::Type::Colorscale); + CPPUNIT_ASSERT_EQUAL(ScFormatEntry::Type::Colorscale, pFormatEntry->GetType()); const ScColorScaleFormat* pColFormat = static_cast(pFormatEntry); CPPUNIT_ASSERT_EQUAL(size_t(2), pColFormat->size()); @@ -140,7 +140,7 @@ void testColorScale3Entry_Impl(const ScDocument& rDoc) CPPUNIT_ASSERT_EQUAL(size_t(1), (*itr)->size()); const ScFormatEntry* pFormatEntry = (*itr)->GetEntry(0); - CPPUNIT_ASSERT_EQUAL(pFormatEntry->GetType(), ScFormatEntry::Type::Colorscale); + CPPUNIT_ASSERT_EQUAL(ScFormatEntry::Type::Colorscale, pFormatEntry->GetType()); const ScColorScaleFormat* pColFormat = static_cast(pFormatEntry); CPPUNIT_ASSERT_EQUAL(size_t(3), pColFormat->size()); -- cgit