vcl/qt5/QtAccessibleWidget.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 0d293754a9d87afeff399af3559a1e95239d1ac5
Author:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
AuthorDate: Sat Oct 21 15:15:31 2023 +0200
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Mon Oct 23 19:16:28 2023 +0200

    fix wasm build (int vs sal_Int32 mismatch)
    
    error: non-const lvalue reference to type 'sal_Int32' (aka 'long')
    cannot bind to a value of unrelated type 'int' in file
    
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/vcl/qt5/QtAccessibleWidget.cxx
    
    (since refactoring in 15a6e23c4fc160c50a316da3d18980a02fc10ce8 )
    
    Change-Id: I2689701839ba18b5cffae13afcaa5b1a32b5e4b9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158305
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Jenkins

diff --git a/vcl/qt5/QtAccessibleWidget.cxx b/vcl/qt5/QtAccessibleWidget.cxx
index 83a50b0a39b6..3407eb574d5c 100644
--- a/vcl/qt5/QtAccessibleWidget.cxx
+++ b/vcl/qt5/QtAccessibleWidget.cxx
@@ -885,9 +885,13 @@ QString QtAccessibleWidget::attributes(int offset, int* 
startOffset, int* endOff
     // Qt doesn't have the strict separation into text and object attributes, 
but also
     // supports text-specific attributes that are object attributes according 
to the
     // IAccessible2 spec.
+    sal_Int32 nStart = 0;
+    sal_Int32 nEnd = 0;
     const OUString aRet = 
AccessibleTextAttributeHelper::GetIAccessible2TextAttributes(
-        xText, IA2AttributeType::TextAttributes | 
IA2AttributeType::ObjectAttributes, offset,
-        *startOffset, *endOffset);
+        xText, IA2AttributeType::TextAttributes | 
IA2AttributeType::ObjectAttributes,
+        static_cast<sal_Int32>(offset), nStart, nEnd);
+    *startOffset = static_cast<int>(nStart);
+    *endOffset = static_cast<int>(nEnd);
     return toQString(aRet);
 }
 

Reply via email to