ucb: replace boost::bind with C++11 lambdas
... and remove now unused comphelper::TNamedValueEqualFunctor. Change-Id: Ia6cac4ae4e34d2ba134e2f2a4a5b4daea58bf0b3
This commit is contained in:
parent
b184b4249d
commit
c96dc8822d
2 changed files with 1 additions and 17 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue