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 <freedesktop@treblig.org>
This commit is contained in:
committed by
David Gilbert
parent
52413de68a
commit
83cb6f80be
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user