tdf#158237 Use C++20 contains() instead of find() and end()

Change-Id: I0efe76b814035aad9faa86c9dfed447759a4448b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182015
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
This commit is contained in:
Simon Chenery
2025-02-21 20:00:24 +01:00
committed by Hossein
parent c957fc0d66
commit 1fc03eaed2

View File

@@ -371,7 +371,7 @@ namespace basic
Reference< XInterface > xNormalized( _rxDocumentModel, UNO_QUERY );
DBG_ASSERT( _rxDocumentModel.is(), "ImplRepository::impl_getLocationForModel: invalid model!" );
return m_aStore.find(xNormalized) != m_aStore.end();
return m_aStore.contains(xNormalized);
}
void ImplRepository::impl_initDocLibraryContainers_nothrow( const Reference<XStorageBasedLibraryContainer>& _rxBasicLibraries, const Reference<XStorageBasedLibraryContainer>& _rxDialogLibraries )