From 83cb6f80beb3f32230fca2ef5a82124b3dcfd9e9 Mon Sep 17 00:00:00 2001 From: Simon Chenery Date: Mon, 18 May 2026 18:41:22 +0200 Subject: [PATCH] tdf#158237 Use C++20 contains() instead of find(), end() in propertymap.cxx Change-Id: Ide59768689cea68444936d71e38fa65ed8b39e49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205321 Tested-by: Jenkins Reviewed-by: David Gilbert --- oox/source/helper/propertymap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx index 2a311ddc9826..b8f5ca9a939f 100644 --- a/oox/source/helper/propertymap.cxx +++ b/oox/source/helper/propertymap.cxx @@ -183,7 +183,7 @@ PropertyMap::PropertyMap() : bool PropertyMap::hasProperty( sal_Int32 nPropId ) const { - return maProperties.find( nPropId ) != maProperties.end(); + return maProperties.contains(nPropId); } bool PropertyMap::setAnyProperty( sal_Int32 nPropId, const Any& rValue )