From f7b4030014f98070feb923c1d650cb98049db968 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Nov 2020 13:59:25 +0100 Subject: 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 --- vcl/osx/a11ytextwrapper.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit