diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-05-04 23:42:17 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-11 20:24:40 +0200 |
commit | c88f76035cd1d088cc06067270677618340fd839 (patch) | |
tree | 2e98a3c2c6bdb6ee909d0b7c45012060e57b9a29 /accessibility | |
parent | b5d624c4af1085d4670149e9c1d280da7bc9add0 (diff) |
Use hasElements to check Sequence emptiness in accessibility..canvas
Similar to clang-tidy readability-container-size-empty
Change-Id: I24c3f04b4eed3c1cd973166885660f113a26844f
Reviewed-on: https://gerrit.libreoffice.org/71805
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 2 | ||||
-rw-r--r-- | accessibility/source/helper/characterattributeshelper.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 3cebc2ba295e..63ea654a3728 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1080,7 +1080,7 @@ void Document::retrieveRunAttributesImpl( aPropVal.State = css::beans::PropertyState_DIRECT_VALUE; aRunAttrSeq[ aPropVal.Name ] = aPropVal; } - if ( RequestedAttributes.getLength() == 0 ) + if ( !RequestedAttributes.hasElements() ) { rRunAttrSeq = aRunAttrSeq; } diff --git a/accessibility/source/helper/characterattributeshelper.cxx b/accessibility/source/helper/characterattributeshelper.cxx index 4935c4865de5..9cbeaaee8a7c 100644 --- a/accessibility/source/helper/characterattributeshelper.cxx +++ b/accessibility/source/helper/characterattributeshelper.cxx @@ -59,7 +59,7 @@ std::vector< PropertyValue > CharacterAttributesHelper::GetCharacterAttributes() Sequence< PropertyValue > CharacterAttributesHelper::GetCharacterAttributes( const css::uno::Sequence< OUString >& aRequestedAttributes ) { - if ( aRequestedAttributes.getLength() == 0 ) + if ( !aRequestedAttributes.hasElements() ) return comphelper::containerToSequence(GetCharacterAttributes()); std::vector< PropertyValue > aValues; |