vcl/qa/cppunit/a11y/atspi2/atspi2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e7f298e8e35935de86ea0373fa68eabc343ee091
Author:     Rene Engelhard <r...@rene-engelhard.de>
AuthorDate: Sun Dec 17 12:38:11 2023 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Sun Dec 17 19:45:17 2023 +0100

    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.wegh...@posteo.de>

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)
         {
  • core.git: vcl/qa Rene Engelhard (via logerrit)
    • core.git: vcl/qa Rene Engelhard (via logerrit)

Reply via email to