diff options
-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; |