Kaydet (Commit) 0fadfd3c authored tarafından Michael Stahl's avatar Michael Stahl

sc: replace boost::bind with C++11 lambda

Change-Id: I516ffb7510f52cceff0cae6970c6ab699a7889be
üst 1fe41c37
......@@ -56,7 +56,6 @@
#include <unordered_set>
#include <utility>
#include <vector>
#include <boost/bind.hpp>
#include <boost/checked_delete.hpp>
#include <boost/intrusive_ptr.hpp>
#include <boost/math/special_functions/log1p.hpp>
......
......@@ -48,7 +48,6 @@
#include <unordered_set>
#include <utility>
#include <vector>
#include <boost/bind.hpp>
#include <boost/checked_delete.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional/optional.hpp>
......
......@@ -26,7 +26,6 @@
#include <unotools/transliterationwrapper.hxx>
#include <o3tl/make_unique.hxx>
#include <boost/bind.hpp>
#include <algorithm>
namespace {
......@@ -338,7 +337,9 @@ bool ScUserList::operator!=( const ScUserList& r ) const
bool ScUserList::HasEntry( const OUString& rStr ) const
{
return ::std::any_of(maData.begin(), maData.end(), ::boost::bind(&ScUserListData::GetString, _1) == rStr);
return ::std::any_of(maData.begin(), maData.end(),
[&] (std::unique_ptr<ScUserListData> const& pData)
{ return pData->GetString() == rStr; } );
}
ScUserList::iterator ScUserList::begin()
......
......@@ -21,8 +21,6 @@
#include "excimp8.hxx"
#include <boost/bind.hpp>
#include <scitems.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
......
......@@ -19,8 +19,6 @@
#include "lotattr.hxx"
#include <boost/bind.hpp>
#include <editeng/boxitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/justifyitem.hxx>
......
......@@ -33,7 +33,6 @@
#include <editeng/lineitem.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <boost/bind.hpp>
#include <svx/sidebar/PopupContainer.hxx>
#include "CellLineStyleControl.hxx"
#include "CellLineStylePopup.hxx"
......
......@@ -35,7 +35,6 @@
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <comphelper/namedvaluecollection.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <boost/bind.hpp>
using namespace css;
using namespace css::uno;
......
......@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <boost/bind.hpp>
#include <vcl/svapp.hxx>
#include <comphelper/servicehelper.hxx>
......@@ -231,7 +229,9 @@ void ScTableConditionalFormat::FillFormat( ScConditionalFormat& rFormat,
ScTableConditionalFormat::~ScTableConditionalFormat()
{
std::for_each(aEntries.begin(),aEntries.end(),boost::bind(&ScTableConditionalEntry::release,_1));
std::for_each(aEntries.begin(), aEntries.end(),
[] (ScTableConditionalEntry *const pEntry) { pEntry->release(); } );
}
void ScTableConditionalFormat::AddEntry_Impl(const ScCondFormatEntryItem& aEntry)
......@@ -362,7 +362,7 @@ void SAL_CALL ScTableConditionalFormat::clear() throw(uno::RuntimeException, std
{
SolarMutexGuard aGuard;
std::for_each(aEntries.begin(),aEntries.end(),
boost::bind(&ScTableConditionalEntry::release,_1));
[] (ScTableConditionalEntry *const pEntry) { pEntry->release(); } );
aEntries.clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment