diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-05-04 17:06:38 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-31 16:10:17 +0200 |
commit | 966f40eecfc60f20c309bc2477149442d753763a (patch) | |
tree | ed72f7b3d2fe609696834d47da120eeb4bd1460c /editeng | |
parent | 4830a1bae89a8ed60696503e315ffd42c70dff74 (diff) |
Use hasElements to check Sequence emptiness in [e-i]*
Similar to clang-tidy readability-container-size-empty
Change-Id: I79e31919db8f4132216f09a7868d18835eeb154b
Reviewed-on: https://gerrit.libreoffice.org/71795
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 2 | ||||
-rw-r--r-- | editeng/source/misc/hangulhanja.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/unofield.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 14d67b5c2ccc..7914e65383a5 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -1208,7 +1208,7 @@ namespace accessibility bool bSupplementalMode = false; uno::Sequence< OUString > aPropertyNames = rRequestedAttributes; - if (aPropertyNames.getLength() == 0) + if (!aPropertyNames.hasElements()) { bSupplementalMode = true; aPropertyNames = getAttributeNames(); diff --git a/editeng/source/misc/hangulhanja.cxx b/editeng/source/misc/hangulhanja.cxx index c8333fa5220d..0bdbb50d33ee 100644 --- a/editeng/source/misc/hangulhanja.cxx +++ b/editeng/source/misc/hangulhanja.cxx @@ -541,7 +541,7 @@ namespace editeng if (!m_bIsInteractive) { // silent conversion (e.g. for simplified/traditional Chinese)... - if(m_aCurrentSuggestions.getLength()>0) + if(m_aCurrentSuggestions.hasElements()) implChange( m_aCurrentSuggestions.getConstArray()[0] ); } else if (bAutoChange) diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index dbae6e36ccd3..5e0eae732fd3 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -577,7 +577,7 @@ uno::Any SAL_CALL SvxUnoTextField::queryAggregation( const uno::Type & rType ) uno::Sequence< uno::Type > SAL_CALL SvxUnoTextField::getTypes() { - if( maTypeSequence.getLength() == 0 ) + if( !maTypeSequence.hasElements() ) { maTypeSequence = comphelper::concatSequences( OComponentHelper::getTypes(), |