summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
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;