summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-10-21 15:15:31 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-10-23 19:16:28 +0200
commit0d293754a9d87afeff399af3559a1e95239d1ac5 (patch)
tree826e78c04e67f8db049a6e3fb6b80fc2c9dcefeb /vcl/qt5
parentea574f7929d4c226d56273178779ef38ca2ce5c9 (diff)
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.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/QtAccessibleWidget.cxx8
1 files 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<sal_Int32>(offset), nStart, nEnd);
+ *startOffset = static_cast<int>(nStart);
+ *endOffset = static_cast<int>(nEnd);
return toQString(aRet);
}