From 991a7b44da24cce0a828ec8f2d7472ce76cbab79 Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Tue, 19 Nov 2024 21:04:17 +0100 Subject: tdf#158237 sw: use c++20 contains() instead of find() and end() Change-Id: Ic8622a035fcd3c8a4a9883db9df8275cf6b10a30 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176801 Tested-by: Jenkins Reviewed-by: Simon Chenery Reviewed-by: Ilmari Lauhakangas --- sw/qa/core/unocore/unocore.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/qa') diff --git a/sw/qa/core/unocore/unocore.cxx b/sw/qa/core/unocore/unocore.cxx index 250d9a2826f9..ca373915ab05 100644 --- a/sw/qa/core/unocore/unocore.cxx +++ b/sw/qa/core/unocore/unocore.cxx @@ -167,7 +167,7 @@ CPPUNIT_TEST_FIXTURE(SwCoreUnocoreTest, testBiblioLocalCopy) comphelper::SequenceAsHashMap aMap(xField->getPropertyValue(u"Fields"_ustr)); // Without the accompanying fix in place, this test would have failed, there was no LocalURL key // in the map. - CPPUNIT_ASSERT(aMap.find(u"LocalURL"_ustr) != aMap.end()); + CPPUNIT_ASSERT(aMap.contains(u"LocalURL"_ustr)); auto aActual = aMap[u"LocalURL"_ustr].get(); CPPUNIT_ASSERT_EQUAL(u"file:///home/me/test.pdf"_ustr, aActual); } -- cgit