sw/qa/extras/tiledrendering/tiledrendering.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 9be657c2c9c4e43a474a8d6efd02bdbd4ab7020e Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Sat Feb 10 13:26:34 2024 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Sat Feb 10 13:26:34 2024 +0100 sw: fix clang plugin errors Change-Id: I212ec698107fc6e5c8b6e4f59bd71bbc27ea3286 diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx index f690b4ec8a40..8dccfeb9271a 100644 --- a/sw/qa/extras/tiledrendering/tiledrendering.cxx +++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx @@ -4133,7 +4133,7 @@ CPPUNIT_TEST_FIXTURE(SwTiledRenderingTest, testSwitchingChartToDarkMode) } ); comphelper::dispatchCommand(".uno:ChangeTheme", xFrame, aPropertyValues); - CPPUNIT_ASSERT_EQUAL(OString("S;Dark"), pXTextDocument->getViewRenderState()); + CPPUNIT_ASSERT_EQUAL("S;Dark"_ostr, pXTextDocument->getViewRenderState()); Bitmap aBitmap(getTile(pXTextDocument)); Size aSize = aBitmap.GetSizePixel(); @@ -4147,9 +4147,9 @@ CPPUNIT_TEST_FIXTURE(SwTiledRenderingTest, testSwitchingChartToDarkMode) int nBlackPixels = 0; int nWhitePixels = 0; BitmapScopedReadAccess pAccess(aBitmap); - for (int x = 0; x < aSize.Width(); ++x) + for (tools::Long x = 0; x < aSize.Width(); ++x) { - for (int y = 0; y < aSize.Height(); ++y) + for (tools::Long y = 0; y < aSize.Height(); ++y) { Color aActualColor(pAccess->GetPixel(y, x)); if (aActualColor.IsDark()) // ignore antialiasing