From 038e4b3b1e10d072b432cb06234521ae9a262a70 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Fri, 3 May 2019 19:51:47 +0300 Subject: Use hasElements to check Sequence emptiness in sax..sdext Similar to clang-tidy readability-container-size-empty Change-Id: If6a567708d3c59355d54933fad23c85195846624 Reviewed-on: https://gerrit.libreoffice.org/71763 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/qa/cppunit/attributes.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sax/qa') diff --git a/sax/qa/cppunit/attributes.cxx b/sax/qa/cppunit/attributes.cxx index c0ffdd7178ab..6c71e9aa182a 100644 --- a/sax/qa/cppunit/attributes.cxx +++ b/sax/qa/cppunit/attributes.cxx @@ -61,7 +61,7 @@ void AttributesTest::test() xAttributeList->clear(); CPPUNIT_ASSERT( !xAttributeList->hasAttribute(1) ); - CPPUNIT_ASSERT_EQUAL( sal_Int32(0), xAttributeList->getFastAttributes().getLength() ); + CPPUNIT_ASSERT( !xAttributeList->getFastAttributes().hasElements() ); xAttributeList->addUnknown("c", "c"); CPPUNIT_ASSERT_EQUAL( sal_Int32(1), xAttributeList->getUnknownAttributes().getLength() ); } -- cgit