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

New commits:
commit eb955488499bcb92721ac6ec72b6fc95014915a0
Author:     Simon Chenery <simon_chen...@yahoo.com>
AuthorDate: Mon Feb 24 00:17:49 2025 +0100
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Mon Feb 24 13:31:00 2025 +0100

    tdf#158237 Use C++20 contains() instead of find() and end()
    
    Change-Id: I97c620ddea1fb536caedddd1f3afa7f3b0f510a6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182070
    Tested-by: Jenkins
    Reviewed-by: Hossein   <hoss...@libreoffice.org>

diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index ce0836b6511b..4147b1a2f7e7 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -756,7 +756,7 @@ void update_checker()
                 for (auto& lang_update : aUpdateInfo.aLanguageFiles)
                 {
                     // only download the language packs for installed languages
-                    if (aInstalledLanguageSet.find(lang_update.aLangCode) != 
aInstalledLanguageSet.end())
+                    if (aInstalledLanguageSet.contains(lang_update.aLangCode))
                     {
                         OUString aFileName = "update_" + lang_update.aLangCode 
+ ".mar";
                         download_file(lang_update.aUpdateFile.aURL, 
lang_update.aUpdateFile.nSize, lang_update.aUpdateFile.aHash, aFileName);

Reply via email to