diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-03-03 14:10:32 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-03-03 15:04:11 +0100 |
commit | b184b4249d114bafba7d2afd00093747db556d33 (patch) | |
tree | c90f466bafeccd1545ec9b528e066976d5227959 /sal | |
parent | 521c5602e366a8d4d826fcd910428965de5d9d4e (diff) |
sal: replace boost::bind with C++11 lambdas
Change-Id: If8e16b7805b5b25dafe053e35cd98079abbea83c
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/pch/precompiled_sal.hxx | 1 | ||||
-rw-r--r-- | sal/osl/all/debugbase.cxx | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx index ab1c7d2602d8..13cf7bbb3333 100644 --- a/sal/inc/pch/precompiled_sal.hxx +++ b/sal/inc/pch/precompiled_sal.hxx @@ -32,7 +32,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <boost/bind.hpp> #include <boost/noncopyable.hpp> #include <osl/diagnose.h> #include <osl/diagnose.hxx> diff --git a/sal/osl/all/debugbase.cxx b/sal/osl/all/debugbase.cxx index c0f0a63c0ccf..c82dde90a495 100644 --- a/sal/osl/all/debugbase.cxx +++ b/sal/osl/all/debugbase.cxx @@ -23,7 +23,7 @@ #include "osl/process.h" #include "osl/diagnose.hxx" #include "sal/log.hxx" -#include "boost/bind.hpp" + #include <algorithm> #include <vector> @@ -95,7 +95,7 @@ bool SAL_CALL osl_detail_ObjectRegistry_storeAddresses( char const* pName ) return true; OStringVec::const_iterator const iEnd( rVec.end() ); return std::find_if( rVec.begin(), iEnd, - boost::bind( &isSubStr, pName, _1 ) ) != iEnd; + [pName] (OString const& it) { return isSubStr(pName, it); }) != iEnd; } bool SAL_CALL osl_detail_ObjectRegistry_checkObjectCount( |