From 1eb8859813ff43b3753dcbab9e3e0bdfe7d72edb Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sat, 4 May 2019 23:16:48 +0300 Subject: 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 --- chart2/source/tools/ConfigColorScheme.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2/source/tools/ConfigColorScheme.cxx') diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx index 84cf07235ddf..c833a311c056 100644 --- a/chart2/source/tools/ConfigColorScheme.cxx +++ b/chart2/source/tools/ConfigColorScheme.cxx @@ -93,7 +93,7 @@ uno::Any ChartConfigItem::getProperty( const OUString & aPropertyName ) { Sequence< uno::Any > aValues( GetProperties( Sequence< OUString >( &aPropertyName, 1 ))); - if( ! aValues.getLength()) + if( ! aValues.hasElements()) return uno::Any(); return aValues[0]; } -- cgit v1.2.1