diff options
Diffstat (limited to 'vcl/osx/a11ytextattributeswrapper.mm')
-rw-r--r-- | vcl/osx/a11ytextattributeswrapper.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm index 28489268f4ee..433906d7d9b3 100644 --- a/vcl/osx/a11ytextattributeswrapper.mm +++ b/vcl/osx/a11ytextattributeswrapper.mm @@ -212,8 +212,7 @@ using namespace ::com::sun::star::uno; sal_Int32 underlineColor = 0; bool underlineHasColor = false; // add attributes to string - for ( int attrIndex = 0; attrIndex < attributes.getLength(); attrIndex++ ) { - PropertyValue property = attributes [ attrIndex ]; + for ( const PropertyValue& property : attributes ) { // TODO: NSAccessibilityMisspelledTextAttribute, NSAccessibilityAttachmentTextAttribute, NSAccessibilityLinkTextAttribute // NSAccessibilityStrikethroughColorTextAttribute is unsupported by UNP-API if ( property.Value.hasValue() ) { |