summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-04 23:16:48 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-10 10:55:57 +0200
commit1eb8859813ff43b3753dcbab9e3e0bdfe7d72edb (patch)
tree4e04ab9584a5ef874faf8141c962158c32448d35 /configmgr
parentec905d131374f0860bac77c52873eed984b1966f (diff)
Use hasElements to check Sequence emptiness in chart2..connectivity
Similar to clang-tidy readability-container-size-empty Change-Id: I41824e8a4ef38d6a35a0ac4421cffcbcd17308e1 Reviewed-on: https://gerrit.libreoffice.org/71802 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/access.cxx2
-rw-r--r--configmgr/source/configurationprovider.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 1f07df1b3d87..b2fcb3cf9ad0 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -1206,7 +1206,7 @@ css::uno::Reference< css::uno::XInterface > Access::createInstanceWithArguments(
css::uno::Sequence< css::uno::Any > const & aArguments)
{
assert(thisIs(IS_SET|IS_UPDATE));
- if (aArguments.getLength() != 0) {
+ if (aArguments.hasElements()) {
throw css::uno::Exception(
("configuration SimpleSetUpdate createInstanceWithArguments"
" must not specify any arguments"),
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx
index 1adcadafdb77..a4da5152cd48 100644
--- a/configmgr/source/configurationprovider.cxx
+++ b/configmgr/source/configurationprovider.cxx
@@ -395,7 +395,7 @@ Factory::createInstanceWithArgumentsAndContext(
css::uno::Sequence< css::uno::Any > const & Arguments,
css::uno::Reference< css::uno::XComponentContext > const & Context)
{
- if (Arguments.getLength() == 0) {
+ if (!Arguments.hasElements()) {
return css::configuration::theDefaultProvider::get(Context);
} else {
OUString locale;