From 1fe9270955707d5a46775b0301f54195208c5b00 Mon Sep 17 00:00:00 2001 From: "Mario J. Rugiero" Date: Mon, 26 Oct 2015 22:33:17 -0300 Subject: Replace boost::bind by lambdas in editeng tree. Change-Id: I3e0383757fb50e9223b5b87558e880859de7f396 Reviewed-on: https://gerrit.libreoffice.org/19619 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/editeng/editdoc.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 03bbcd3afcb5..edfbe8878a3b 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -67,8 +67,6 @@ #include #include -#include - using namespace ::com::sun::star; @@ -3000,7 +2998,7 @@ const EditCharAttrib* CharAttribList::FindFeature( sal_Int32 nPos ) const return NULL; // And find the first attribute with feature. - it = std::find_if(it, aAttribs.end(), boost::bind(&EditCharAttrib::IsFeature, _1) == true); + it = std::find_if(it, aAttribs.end(), [](const EditCharAttrib& aAttrib) { return aAttrib.IsFeature(); } ); return it == aAttribs.end() ? NULL : &(*it); } @@ -3023,7 +3021,7 @@ public: void CharAttribList::DeleteEmptyAttribs( SfxItemPool& rItemPool ) { std::for_each(aAttribs.begin(), aAttribs.end(), RemoveEmptyAttrItem(rItemPool)); - aAttribs.erase_if(boost::bind(&EditCharAttrib::IsEmpty, _1) == true); + aAttribs.erase_if([](const EditCharAttrib& aAttrib) { return aAttrib.IsEmpty(); } ); bHasEmptyAttribs = false; } -- cgit