summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-12 13:59:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-15 17:14:18 +0100
commitf7b4030014f98070feb923c1d650cb98049db968 (patch)
tree5bbda2b9e641deb01fec6ff8a721c3bbec25d3d0 /vcl/osx
parente791d54cda2af5bc14b79c6041f00cfd8880ce96 (diff)
UNOIDL long vs. C++ sal_Int32 confustion
UNOIDL css.accessibility.XAccessibleText.getCaretPosition returns long, i.e., sal_Int32 in C++ Change-Id: Iaf6f6407f77a3d3fae7cd99e08c4cd43343a7af6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105742 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/a11ytextwrapper.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/a11ytextwrapper.mm b/vcl/osx/a11ytextwrapper.mm
index a39037f079b1..cfd4ae7c1c22 100644
--- a/vcl/osx/a11ytextwrapper.mm
+++ b/vcl/osx/a11ytextwrapper.mm
@@ -77,7 +77,7 @@ using namespace ::com::sun::star::uno;
if ( start != end ) {
return [ NSValue valueWithRange: NSMakeRange ( start, end - start ) ]; // true selection
} else {
- long caretPos = [ wrapper accessibleText ] -> getCaretPosition();
+ sal_Int32 caretPos = [ wrapper accessibleText ] -> getCaretPosition();
if ( caretPos < 0 || caretPos > [ wrapper accessibleText ] -> getCharacterCount() ) {
return nil;
}