editeng/qa/unit/core-test.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b43e70e1066532ba96d095a2724b274bdb889030 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Apr 21 10:25:34 2023 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Apr 24 18:55:28 2023 +0200 Fix Windows build ... after commit 235c892393f8c1459aa68447a0e3621e2b3cd10c (editeng:qa: add single line unit test, 2023-02-15) sal_Int32 is not int on that platform, resulting in C:/core/editeng/qa/unit/core-test.cxx(1771): error C2672: 'CppUnit::assertEquals': no matching overloaded function found C:/core/editeng/qa/unit/core-test.cxx(1771): error C2782: 'void CppUnit::assertEquals(const T &,const T &,CppUnit::SourceLine,const std::string &)': template parameter 'T' is ambiguous Change-Id: Ie562ff301569bd85a185b6713e0896ecfa7c7eaa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150721 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index 3e7087ffcd87..884a20622da6 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -1768,8 +1768,8 @@ void Test::testSingleLine() aEditEngine.SetText(sText); aEditEngine.QuickFormatDoc(true); CPPUNIT_ASSERT_EQUAL(true, aEditEngine.IsFormatted()); - CPPUNIT_ASSERT_EQUAL(1, aEditEngine.GetParagraphCount()); - CPPUNIT_ASSERT_EQUAL(1, aEditEngine.GetLineCount(0)); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), aEditEngine.GetParagraphCount()); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), aEditEngine.GetLineCount(0)); } CPPUNIT_TEST_SUITE_REGISTRATION(Test);