summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-07-06 15:33:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-07 08:14:27 +0200
commit307e528275cb91776e8f5560b3137c3c1649b39c (patch)
treea034d9becc1aafb77f73f3beb3e5c92c0a35ce1a
parente044a3158e888ed2f6f047f2723cd5ffa3a0f4f8 (diff)
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@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--connectivity/source/commontools/dbtools2.cxx3
1 files changed, 2 insertions, 1 deletions
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;
}