summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorBogdan Buzea <buzea.bogdan@libreoffice.org>2024-11-19 21:04:17 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-11-29 20:47:28 +0100
commit991a7b44da24cce0a828ec8f2d7472ce76cbab79 (patch)
tree6ced47e2362388e626462bd4286d2de7a625edd4 /sw/qa
parent383e3aef8438141bfc953f0cca094f6d3d7ed007 (diff)
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 <simon_chenery@yahoo.com> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/core/unocore/unocore.cxx2
1 files changed, 1 insertions, 1 deletions
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<OUString>();
CPPUNIT_ASSERT_EQUAL(u"file:///home/me/test.pdf"_ustr, aActual);
}