diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-12 14:05:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-15 17:05:16 +0100 |
commit | e791d54cda2af5bc14b79c6041f00cfd8880ce96 (patch) | |
tree | 946712d21d205f50e360f7197d1caaf72c65056a /vcl/osx | |
parent | 3eb23bd401ac133ac279b0f901d2ea656d051539 (diff) |
UNOIDL long vs. C++ sal_Int32 confustion
UNOIDL css.accessibility.XAccessibleTextMarkup.getTextMarkupCount uses long,
i.e., sal_Int32 in C++, for both its TextMarkupType parameter and its return
type
Change-Id: Ie4dbebf76c5a946f1954853d98c705baa301b060
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105743
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/a11ytextattributeswrapper.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm index f5d826dbc0b1..ac4cb7d2444d 100644 --- a/vcl/osx/a11ytextattributeswrapper.mm +++ b/vcl/osx/a11ytextattributeswrapper.mm @@ -275,9 +275,9 @@ SAL_WNODEPRECATED_DECLARATIONS_POP [ pool release ]; } -+(void)addMarkup:(XAccessibleTextMarkup*)markup withType:(long)type toString:(NSMutableAttributedString*)string inRange:(NSRange)range { - const long markupCount = markup->getTextMarkupCount(type); - for (long markupIndex = 0; markupIndex < markupCount; ++markupIndex) { ++(void)addMarkup:(XAccessibleTextMarkup*)markup withType:(sal_Int32)type toString:(NSMutableAttributedString*)string inRange:(NSRange)range { + const sal_Int32 markupCount = markup->getTextMarkupCount(type); + for (sal_Int32 markupIndex = 0; markupIndex < markupCount; ++markupIndex) { TextSegment markupSegment = markup->getTextMarkup(markupIndex, type); NSRange markupRange = NSMakeRange(markupSegment.SegmentStart, markupSegment.SegmentEnd - markupSegment.SegmentStart); markupRange = NSIntersectionRange(range, markupRange); |