editeng/source/editeng/editdoc.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 1fe9270955707d5a46775b0301f54195208c5b00 Author: Mario J. Rugiero <mrugi...@gmail.com> Date: Mon Oct 26 22:33:17 2015 -0300 Replace boost::bind by lambdas in editeng tree. Change-Id: I3e0383757fb50e9223b5b87558e880859de7f396 Reviewed-on: https://gerrit.libreoffice.org/19619 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noelgran...@gmail.com> diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 03bbcd3..edfbe88 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -67,8 +67,6 @@ #include <cassert> #include <limits> -#include <boost/bind.hpp> - 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits