desktop/source/migration/migration.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 37c5a752eebf3298c00f0362db988c1d542105ed
Author:     Akaki Dzidziguri <[email protected]>
AuthorDate: Fri Nov 21 11:19:42 2025 +0400
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Fri Dec 12 14:31:07 2025 +0100

    tdf#158237 Use C++20 contains() in migration
    
    Change-Id: Iff1cbd72a655985c59a0ef848f9773148e375382
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194298
    Reviewed-by: Ilmari Lauhakangas <[email protected]>
    Tested-by: Jenkins

diff --git a/desktop/source/migration/migration.cxx 
b/desktop/source/migration/migration.cxx
index 0739475c44dd..d00f772d9c6d 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -1012,7 +1012,7 @@ void MigrationImpl::compareOldAndNewConfig(const 
OUString& sParent,
             compareOldAndNewConfig(sName, oldItem.m_xPopupMenu, 
pFound->m_xPopupMenu, sResourceURL);
         } else if (pFound == vNewItems.end()) {
             MigrationItem aMigrationItem(sParent, sSibling, 
oldItem.m_sCommandURL, oldItem.m_xPopupMenu);
-            if 
(m_aOldVersionItemsHashMap.find(sResourceURL)==m_aOldVersionItemsHashMap.end()) 
{
+            if (!m_aOldVersionItemsHashMap.contains(sResourceURL)) {
                 std::vector< MigrationItem > vMigrationItems;
                 m_aOldVersionItemsHashMap.emplace(sResourceURL, 
vMigrationItems);
                 
m_aOldVersionItemsHashMap[sResourceURL].push_back(aMigrationItem);

Reply via email to