From 307e528275cb91776e8f5560b3137c3c1649b39c Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Thu, 6 Jul 2017 15:33:57 +0200 Subject: 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 Reviewed-by: Noel Grandin --- connectivity/source/commontools/dbtools2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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& _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; } -- cgit v1.2.3