diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-12 14:19:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-15 17:17:58 +0100 |
commit | bbb8cbcd404e608f6016a812d47170080a4671a6 (patch) | |
tree | d894b0d7ef5f0491b88f3b029975a822fe3ff61c /vcl | |
parent | 87b4bf1ea44235ca64ec7b2b2ba41b91da6ed384 (diff) |
Assumed UNOIDL long vs. C++ sal_Int32 confusion
UNOIDL css.accessibility.XAccessibleValue.getCurrentValue returning any is
documented: "The exact return type is implementation dependent. Typical types
are long and double." So assume that this code meant to extract a UNOIDL long,
i.e., sal_Int32 in C++, value. (And similarly for getMinimum/MaximumValue.
Also, the "TODO: Detect Type from Any" comments seem to imply that something
more elaborate is asked for, anyway?)
Change-Id: If01956eaf4ec186931414a4e1d55429e66901c55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105745
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/a11yvaluewrapper.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/a11yvaluewrapper.mm b/vcl/osx/a11yvaluewrapper.mm index 4882cd2eff97..0cf3786fbe6e 100644 --- a/vcl/osx/a11yvaluewrapper.mm +++ b/vcl/osx/a11yvaluewrapper.mm @@ -31,7 +31,7 @@ using namespace ::com::sun::star::uno; +(id)valueAttributeForElement:(AquaA11yWrapper *)wrapper { // TODO: Detect Type from Any if ( [ wrapper accessibleValue ] ) { - long value = 0; + sal_Int32 value = 0; [ wrapper accessibleValue ] -> getCurrentValue() >>= value; return [ NSNumber numberWithLong: value ]; } @@ -41,7 +41,7 @@ using namespace ::com::sun::star::uno; +(id)minValueAttributeForElement:(AquaA11yWrapper *)wrapper { // TODO: Detect Type from Any if ( [ wrapper accessibleValue ] ) { - long value = 0; + sal_Int32 value = 0; [ wrapper accessibleValue ] -> getMinimumValue() >>= value; return [ NSNumber numberWithLong: value ]; } @@ -51,7 +51,7 @@ using namespace ::com::sun::star::uno; +(id)maxValueAttributeForElement:(AquaA11yWrapper *)wrapper { // TODO: Detect Type from Any if ( [ wrapper accessibleValue ] ) { - long value = 0; + sal_Int32 value = 0; [ wrapper accessibleValue ] -> getMaximumValue() >>= value; return [ NSNumber numberWithLong: value ]; } |