From 0d293754a9d87afeff399af3559a1e95239d1ac5 Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Sat, 21 Oct 2023 15:15:31 +0200 Subject: [PATCH] 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 Tested-by: Jenkins --- vcl/qt5/QtAccessibleWidget.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(offset), nStart, nEnd); + *startOffset = static_cast(nStart); + *endOffset = static_cast(nEnd); return toQString(aRet); } -- 2.11.4.GIT