[Libreoffice-commits] core.git: include/comphelper

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 14 12:22:03 UTC 2021


 include/comphelper/stl_types.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit af343d6bc40cf97007632247c1af662a4587f155
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Jan 14 09:22:02 2021 +0100
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Jan 14 13:21:21 2021 +0100

    Make lambda auto parameters explicitly const
    
    Change-Id: Ie8fe7738476f31ea3670987842f552782e9624da
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109273
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx
index 613644ad218a..983247a84713 100644
--- a/include/comphelper/stl_types.hxx
+++ b/include/comphelper/stl_types.hxx
@@ -84,7 +84,7 @@ bool ContainerUniquePtrEquals(
 {
     return lhs.size() == rhs.size()
            && std::equal(lhs.begin(), lhs.end(), rhs.begin(),
-                         [](auto& p1, auto& p2) { return *p1 == *p2; });
+                         [](const auto& p1, const auto& p2) { return *p1 == *p2; });
 };
 
 


More information about the Libreoffice-commits mailing list