diff options
author | Simon Chenery <simon_chenery@yahoo.com> | 2025-02-21 20:00:24 +0100 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2025-02-23 22:25:40 +0100 |
commit | 1fc03eaed2899ac041f660f54cb1facb71390ccf (patch) | |
tree | 389e8d9c3be7b49c5dc8886c97a71d527d5c73e4 /basic/source/basmgr | |
parent | c957fc0d669884f3d1e27fa5296e045198a6013a (diff) |
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>
Diffstat (limited to 'basic/source/basmgr')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |