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

New commits:
commit 307e528275cb91776e8f5560b3137c3c1649b39c
Author: Jochen Nitschke <j.nitschke+loger...@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 <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noel.gran...@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;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to