diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-05-04 21:20:18 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-05 19:24:57 +0200 |
commit | 2ed3d691b42525f6c1cc430d5863febcb102816e (patch) | |
tree | 97088acb96f8ad26f2ae67f3f8e5c2f6aab05cf0 /cui/source/options/optlingu.cxx | |
parent | 6c31c2b01dd32cc7ba1230f2c4a98b8f7def219b (diff) |
Use hasElements to check Sequence emptiness in cppcanvas..desktop
Similar to clang-tidy readability-container-size-empty
Change-Id: I81c0ff78d2ecc7d984e3ed5e5ce60efe327fc162
Reviewed-on: https://gerrit.libreoffice.org/71799
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/options/optlingu.cxx')
-rw-r--r-- | cui/source/options/optlingu.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index ed8b59ed5644..3280514c63d7 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -580,7 +580,7 @@ SvxLinguData_Impl::SvxLinguData_Impl() : const Sequence< Locale > aLocales( aInfo.xSpell->getLocales() ); //! suppress display of entries with no supported languages (see feature 110994) - if (aLocales.getLength()) + if (aLocales.hasElements()) { lcl_MergeLocales( aAllServiceLocales, aLocales ); lcl_MergeDisplayArray( *this, aInfo ); @@ -604,7 +604,7 @@ SvxLinguData_Impl::SvxLinguData_Impl() : const Sequence< Locale > aLocales( aInfo.xGrammar->getLocales() ); //! suppress display of entries with no supported languages (see feature 110994) - if (aLocales.getLength()) + if (aLocales.hasElements()) { lcl_MergeLocales( aAllServiceLocales, aLocales ); lcl_MergeDisplayArray( *this, aInfo ); @@ -627,7 +627,7 @@ SvxLinguData_Impl::SvxLinguData_Impl() : const Sequence< Locale > aLocales( aInfo.xHyph->getLocales() ); //! suppress display of entries with no supported languages (see feature 110994) - if (aLocales.getLength()) + if (aLocales.hasElements()) { lcl_MergeLocales( aAllServiceLocales, aLocales ); lcl_MergeDisplayArray( *this, aInfo ); @@ -650,7 +650,7 @@ SvxLinguData_Impl::SvxLinguData_Impl() : const Sequence< Locale > aLocales( aInfo.xThes->getLocales() ); //! suppress display of entries with no supported languages (see feature 110994) - if (aLocales.getLength()) + if (aLocales.hasElements()) { lcl_MergeLocales( aAllServiceLocales, aLocales ); lcl_MergeDisplayArray( *this, aInfo ); @@ -665,22 +665,22 @@ SvxLinguData_Impl::SvxLinguData_Impl() : aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(cSpell, pAllLocales[nLocale]); SetChecked( aCfgSvcs ); - if (aCfgSvcs.getLength()) + if (aCfgSvcs.hasElements()) aCfgSpellTable[ nLang ] = aCfgSvcs; aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(cGrammar, pAllLocales[nLocale]); SetChecked( aCfgSvcs ); - if (aCfgSvcs.getLength()) + if (aCfgSvcs.hasElements()) aCfgGrammarTable[ nLang ] = aCfgSvcs; aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(cHyph, pAllLocales[nLocale]); SetChecked( aCfgSvcs ); - if (aCfgSvcs.getLength()) + if (aCfgSvcs.hasElements()) aCfgHyphTable[ nLang ] = aCfgSvcs; aCfgSvcs = xLinguSrvcMgr->getConfiguredServices(cThes, pAllLocales[nLocale]); SetChecked( aCfgSvcs ); - if (aCfgSvcs.getLength()) + if (aCfgSvcs.hasElements()) aCfgThesTable[ nLang ] = aCfgSvcs; } } |