bridges/source/cpp_uno/shared/vtablefactory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2ec289a70b84adc5965b9dfc9210761f8e69c428 Author: Jason Whitmore <[email protected]> AuthorDate: Wed Aug 20 19:10:07 2025 -0700 Commit: Hossein <[email protected]> CommitDate: Tue Sep 9 15:55:25 2025 +0200 tdf#158237 replace find() and end() with contains() This change updates code to use C++20 features. Change-Id: Ib9edbd83faf464a0d866fb57276050e72ff0d023 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190310 Tested-by: Jenkins Reviewed-by: Hossein <[email protected]> diff --git a/bridges/source/cpp_uno/shared/vtablefactory.cxx b/bridges/source/cpp_uno/shared/vtablefactory.cxx index 1fb768b21849..96077742ebdb 100644 --- a/bridges/source/cpp_uno/shared/vtablefactory.cxx +++ b/bridges/source/cpp_uno/shared/vtablefactory.cxx @@ -186,7 +186,7 @@ sal_Int32 VtableFactory::BaseOffset::calculate( typelib_InterfaceTypeDescription * type, sal_Int32 offset) { OUString name(type->aBase.pTypeName); - if (m_map.find(name) == m_map.end()) { + if (!m_map.contains(name)) { for (sal_Int32 i = 0; i < type->nBaseTypes; ++i) { offset = calculate(type->ppBaseTypes[i], offset); }
