From deffca13fd8a765ddc518cfcff464cb1b6f5c65a Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Thu, 2 May 2019 13:39:20 +0300 Subject: 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 --- test/source/sheet/xfunctiondescriptions.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/source/sheet/xfunctiondescriptions.cxx') diff --git a/test/source/sheet/xfunctiondescriptions.cxx b/test/source/sheet/xfunctiondescriptions.cxx index fb3820590586..5c53b52971ac 100644 --- a/test/source/sheet/xfunctiondescriptions.cxx +++ b/test/source/sheet/xfunctiondescriptions.cxx @@ -55,7 +55,7 @@ void XFunctionDescriptions::testGetById() OUString aName2; uno::Sequence aProps2 = xFD->getById(aId1); CPPUNIT_ASSERT_MESSAGE("Received empty FunctionDescriptions from getById()", - aProps2.getLength()); + aProps2.hasElements()); for (const auto& aProp : aProps2) { if (aProp.Name == "Id") -- cgit