diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-05-03 19:51:47 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-12 14:18:12 +0200 |
commit | 038e4b3b1e10d072b432cb06234521ae9a262a70 (patch) | |
tree | 6fb8087fd6a11fea6440dae91e8419043ad5f784 /scripting/source/provider | |
parent | 7bc6a7187c26690c64acb397e68d921be71e362e (diff) |
Use hasElements to check Sequence emptiness in sax..sdext
Similar to clang-tidy readability-container-size-empty
Change-Id: If6a567708d3c59355d54933fad23c85195846624
Reviewed-on: https://gerrit.libreoffice.org/71763
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/provider')
-rw-r--r-- | scripting/source/provider/ProviderCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx index f669a9cc3a31..cf54ea0aee22 100644 --- a/scripting/source/provider/ProviderCache.cxx +++ b/scripting/source/provider/ProviderCache.cxx @@ -148,7 +148,7 @@ ProviderCache::populateCache() Sequence< OUString > serviceNames = xServiceInfo->getSupportedServiceNames(); - if ( serviceNames.getLength() > 0 ) + if ( serviceNames.hasElements() ) { for ( sal_Int32 index = 0; index < serviceNames.getLength(); index++ ) { |