diff options
author | Rene Engelhard <rene@rene-engelhard.de> | 2023-12-17 12:38:11 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-12-17 19:45:17 +0100 |
commit | e7f298e8e35935de86ea0373fa68eabc343ee091 (patch) | |
tree | 1bf8b42a8c361fac263af1f46c2f9d6d191457f6 /vcl/qa | |
parent | 55d079aa250a6c64120780d0f9a6117d71887b2b (diff) |
fix 32 bit build
/home/rene/LibreOffice/git/libreoffice-24-2/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx: In static member function 'static void Atspi2TestTree::compareObjects(const com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible>&, const Atspi::Accessible&, sal_uInt16)':
/home/rene/LibreOffice/git/libreoffice-24-2/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx:362:9: error: no matching function for call to 'assertEquals(const long int&, int, CppUnit::SourceLine, const char [1])'
362 | CPPUNIT_ASSERT_EQUAL(nLOTargetsCount, pAtspiRelation.getNTargets());
| ^
/usr/include/cppunit/TestAssert.h:161:6: note: candidate: 'template<class T> void CppUnit::assertEquals(const T&, const T&, SourceLine, const std::string&)'
161 | void assertEquals( const T& expected,
| ^~~~~~~~~~~~
/usr/include/cppunit/TestAssert.h:161:6: note: template argument deduction/substitution failed:
/home/rene/LibreOffice/git/libreoffice-24-2/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx:362:9: note: deduced conflicting types for parameter 'const T' ('long int' and 'int')
362 | CPPUNIT_ASSERT_EQUAL(nLOTargetsCount, pAtspiRelation.getNTargets());
| ^
make: *** [/home/rene/LibreOffice/git/libreoffice-24-2/solenv/gbuild/LinkTarget.mk:340: /home/rene/LibreOffice/git/libreoffice-24-2/workdir/CxxObject/vcl/qa/cppunit/a11y/atspi2/atspi2.o] Error 1
Change-Id: I7b7e3e756b135d1066af631e92738e7dfc1ede4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160882
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/a11y/atspi2/atspi2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx b/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx index 85110eeddecb..7ef2efeca0ef 100644 --- a/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx +++ b/vcl/qa/cppunit/a11y/atspi2/atspi2.cxx @@ -359,7 +359,7 @@ void Atspi2TestTree::compareObjects(const uno::Reference<accessibility::XAccessi CPPUNIT_ASSERT_EQUAL(mapRelationType(xLORelation.RelationType), pAtspiRelation.getRelationType()); - CPPUNIT_ASSERT_EQUAL(nLOTargetsCount, pAtspiRelation.getNTargets()); + CPPUNIT_ASSERT_EQUAL(nLOTargetsCount, static_cast<sal_Int32>(pAtspiRelation.getNTargets())); if (recurseFlags & RecurseFlags::RELATIONS_TARGETS) { |