[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Nov 15 16:05:57 UTC 2020
vcl/osx/a11ytextattributeswrapper.mm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e791d54cda2af5bc14b79c6041f00cfd8880ce96
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Nov 12 14:05:11 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Nov 15 17:05:16 2020 +0100
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 at redhat.com>
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);
More information about the Libreoffice-commits
mailing list