summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-02-22 21:28:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-02-23 07:04:09 +0000
commitdc96de7c62e1e6f37ec485f3f0f564a00f3d01f4 (patch)
tree2f22076b18079daa2f79021463818de6facd71e4 /vcl/qa
parent6d404f9ccad3ac6a7ffb83876ae7a656bc2d4547 (diff)
Extend loplugin:cppunitassertequals to more argument types
Change-Id: Ic2990ebc2e4a9a36dcd3f90c5f634ca7dd225d52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147491 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/outdev.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/vcl/qa/cppunit/outdev.cxx b/vcl/qa/cppunit/outdev.cxx
index b3468aa7c4ee..99fb0b9be7d9 100644
--- a/vcl/qa/cppunit/outdev.cxx
+++ b/vcl/qa/cppunit/outdev.cxx
@@ -162,31 +162,31 @@ public:
void VclOutdevTest::testGetReadableFontColorPrinter()
{
ScopedVclPtrInstance<Printer> pPrinter;
- CPPUNIT_ASSERT_EQUAL(pPrinter->GetReadableFontColor(COL_WHITE, COL_WHITE), COL_BLACK);
+ CPPUNIT_ASSERT_EQUAL(COL_BLACK, pPrinter->GetReadableFontColor(COL_WHITE, COL_WHITE));
}
void VclOutdevTest::testGetReadableFontColorWindow()
{
ScopedVclPtrInstance<vcl::Window> pWindow(nullptr, WB_APP | WB_STDWORK);
- CPPUNIT_ASSERT_EQUAL(pWindow->GetOutDev()->GetReadableFontColor(COL_WHITE, COL_BLACK),
- COL_WHITE);
- CPPUNIT_ASSERT_EQUAL(pWindow->GetOutDev()->GetReadableFontColor(COL_WHITE, COL_WHITE),
- COL_BLACK);
- CPPUNIT_ASSERT_EQUAL(pWindow->GetOutDev()->GetReadableFontColor(COL_BLACK, COL_BLACK),
- COL_WHITE);
+ CPPUNIT_ASSERT_EQUAL(COL_WHITE,
+ pWindow->GetOutDev()->GetReadableFontColor(COL_WHITE, COL_BLACK));
+ CPPUNIT_ASSERT_EQUAL(COL_BLACK,
+ pWindow->GetOutDev()->GetReadableFontColor(COL_WHITE, COL_WHITE));
+ CPPUNIT_ASSERT_EQUAL(COL_WHITE,
+ pWindow->GetOutDev()->GetReadableFontColor(COL_BLACK, COL_BLACK));
}
void VclOutdevTest::testPrinterBackgroundColor()
{
ScopedVclPtrInstance<Printer> pPrinter;
- CPPUNIT_ASSERT_EQUAL(pPrinter->GetBackgroundColor(), COL_WHITE);
+ CPPUNIT_ASSERT_EQUAL(COL_WHITE, pPrinter->GetBackgroundColor());
}
void VclOutdevTest::testWindowBackgroundColor()
{
ScopedVclPtrInstance<vcl::Window> pWindow(nullptr, WB_APP | WB_STDWORK);
pWindow->SetBackground(Wallpaper(COL_WHITE));
- CPPUNIT_ASSERT_EQUAL(pWindow->GetBackgroundColor(), COL_WHITE);
+ CPPUNIT_ASSERT_EQUAL(COL_WHITE, pWindow->GetBackgroundColor());
}
void VclOutdevTest::testVirtualDevice()
@@ -197,7 +197,7 @@ void VclOutdevTest::testVirtualDevice()
pVDev->SetOutputSizePixel(Size(32, 32));
pVDev->SetBackground(Wallpaper(COL_WHITE));
- CPPUNIT_ASSERT_EQUAL(pVDev->GetBackgroundColor(), COL_WHITE);
+ CPPUNIT_ASSERT_EQUAL(COL_WHITE, pVDev->GetBackgroundColor());
pVDev->Erase();
pVDev->DrawPixel(Point(1, 2), COL_BLUE);