[Libreoffice-commits] core.git: connectivity/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Fri Jul 7 06:14:56 UTC 2017


 connectivity/source/commontools/dbtools2.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 307e528275cb91776e8f5560b3137c3c1649b39c
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Thu Jul 6 15:33:57 2017 +0200

    tdf#108782 replace std::bind2nd with lambda
    
    and inline questionable comphelper::TPropertyValueEqualFunctor
    
    Change-Id: I9caf7063f653554a3758d9eab3eb4d6dfd36309e
    Reviewed-on: https://gerrit.libreoffice.org/39658
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx
index c7097ae960e7..c732d84fcf53 100644
--- a/connectivity/source/commontools/dbtools2.cxx
+++ b/connectivity/source/commontools/dbtools2.cxx
@@ -639,7 +639,8 @@ bool isDataSourcePropertyEnabled(const Reference<XInterface>& _xProp, const OUSt
             xProp->getPropertyValue("Info") >>= aInfo;
             const PropertyValue* pValue =std::find_if(aInfo.begin(),
                                                 aInfo.end(),
-                                                std::bind2nd(TPropertyValueEqualFunctor(),_sProperty));
+                                                [&_sProperty](const PropertyValue& lhs)
+                                                { return lhs.Name == _sProperty; });
             if ( pValue && pValue != (aInfo.getConstArray() + aInfo.getLength()) )
                 pValue->Value >>= bEnabled;
         }


More information about the Libreoffice-commits mailing list