diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-21 10:25:34 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-24 18:55:28 +0200 |
commit | b43e70e1066532ba96d095a2724b274bdb889030 (patch) | |
tree | 318de06c5219612f2bad541cf982d865c7910111 /editeng | |
parent | fa0312aaa687366168ed9ead00bb78eedcd054cf (diff) |
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.timar@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/qa/unit/core-test.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |