basic/source/basmgr/basicmanagerrepository.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1fc03eaed2899ac041f660f54cb1facb71390ccf Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Fri Feb 21 20:00:24 2025 +0100 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Sun Feb 23 22:25:40 2025 +0100 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 <hoss...@libreoffice.org> diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 6581f225f8b3..16f5b63626ce 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -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 )