diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-03-03 14:28:30 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-03-03 15:04:11 +0100 |
commit | c96dc8822d8bb7c1b8309888b22254cac2abc5ce (patch) | |
tree | 8a1b279b348d057462762433eac5caf000359838 | |
parent | b184b4249d114bafba7d2afd00093747db556d33 (diff) |
ucb: replace boost::bind with C++11 lambdas
... and remove now unused comphelper::TNamedValueEqualFunctor.
Change-Id: Ia6cac4ae4e34d2ba134e2f2a4a5b4daea58bf0b3
-rw-r--r-- | include/comphelper/stl_types.hxx | 12 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 6 |
2 files changed, 1 insertions, 17 deletions
diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx index f38a9cf061a5..e6c4a72f8bf0 100644 --- a/include/comphelper/stl_types.hxx +++ b/include/comphelper/stl_types.hxx @@ -29,7 +29,6 @@ #include <rtl/ustrbuf.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/beans/PropertyValue.hpp> -#include <com/sun/star/beans/NamedValue.hpp> namespace comphelper { @@ -76,17 +75,6 @@ public: } }; -class TNamedValueEqualFunctor : public ::std::binary_function< css::beans::NamedValue,OUString,bool> -{ -public: - TNamedValueEqualFunctor() - {} - bool operator() (const css::beans::NamedValue& lhs, const OUString& rhs) const - { - return !!(lhs.Name == rhs); - } -}; - /// by-value less functor for std::set<std::unique_ptr<T>> template<class T> struct UniquePtrValueLess : public ::std::binary_function<std::unique_ptr<T>, std::unique_ptr<T>, bool> diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index 83e5ba7a7475..516797e6203e 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -47,7 +47,6 @@ extern "C" { #include "rtl/ustrbuf.hxx" #include "comphelper/processfactory.hxx" #include "comphelper/sequence.hxx" -#include <comphelper/stl_types.hxx> #include "ucbhelper/simplecertificatevalidationrequest.hxx" #include "DAVAuthListener.hxx" @@ -71,7 +70,6 @@ extern "C" { #include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/xml/crypto/SEInitializer.hpp> -#include <boost/bind.hpp> using namespace com::sun::star; using namespace webdav_ucp; @@ -148,9 +146,7 @@ static bool noKeepAlive( const uno::Sequence< beans::NamedValue >& rFlags ) const sal_Int32 nLen(rFlags.getLength()); const beans::NamedValue* pValue( std::find_if(pAry,pAry+nLen, - boost::bind(comphelper::TNamedValueEqualFunctor(), - _1, - OUString("KeepAlive")))); + [] (beans::NamedValue const& rNV) { return rNV.Name == OUString("KeepAlive"); } )); if ( pValue != pAry+nLen && !pValue->Value.get<sal_Bool>() ) return true; |