summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-05-02 13:39:20 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-02 13:37:13 +0200
commitdeffca13fd8a765ddc518cfcff464cb1b6f5c65a (patch)
treee1a34de7398b803bca75fc9dcd69985cc8b9fc18 /ucbhelper
parente2abbc0062398ea67cb13cb5b0b7bfdce78e652c (diff)
Use hasElements to check Sequence emptiness in [t-u]*
Similar to clang-tidy readability-container-size-empty Change-Id: Idefe55e37f5c837c889548ffe7c5711400012a4d Reviewed-on: https://gerrit.libreoffice.org/71667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/client/content.cxx2
-rw-r--r--ucbhelper/source/provider/contenthelper.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 01d55bf6211c..04eccd0f0057 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -1201,7 +1201,7 @@ Reference< XContent > Content_Impl::getContent()
Reference< XUniversalContentBroker > pBroker(
UniversalContentBroker::create( getComponentContext() ) );
- OSL_ENSURE( pBroker->queryContentProviders().getLength(),
+ OSL_ENSURE( pBroker->queryContentProviders().hasElements(),
"Content Broker not configured (no providers)!" );
Reference< XContentIdentifier > xId
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx
index 5c64416a1c59..73b8a67d5949 100644
--- a/ucbhelper/source/provider/contenthelper.cxx
+++ b/ucbhelper/source/provider/contenthelper.cxx
@@ -527,7 +527,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const OUString& Name )
// Success!
- if ( xSet->getPropertySetInfo()->getProperties().getLength() == 0 )
+ if ( !xSet->getPropertySetInfo()->getProperties().hasElements() )
{
// Remove empty propertyset from registry.
uno::Reference< css::ucb::XPropertySetRegistry >