sw/qa/core/unocore/unocore.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 991a7b44da24cce0a828ec8f2d7472ce76cbab79
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Tue Nov 19 21:04:17 2024 +0100
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Fri Nov 29 20:47:28 2024 +0100

    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_chen...@yahoo.com>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

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);
 }

Reply via email to