diff options
Diffstat (limited to 'connectivity/source/commontools/dbtools2.cxx')
-rw-r--r-- | connectivity/source/commontools/dbtools2.cxx | 3 |
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; } |