summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-10-26 22:33:17 -0300
committerNoel Grandin <noelgrandin@gmail.com>2015-10-27 05:42:48 +0000
commit1fe9270955707d5a46775b0301f54195208c5b00 (patch)
tree6f8301c35d17e88d71aae6c102bd859c253d2bbc /editeng
parent5491988d228ac253411ad64ad1267eb9bb65ad3f (diff)
Replace boost::bind by lambdas in editeng tree.
Change-Id: I3e0383757fb50e9223b5b87558e880859de7f396 Reviewed-on: https://gerrit.libreoffice.org/19619 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx6
1 files changed, 2 insertions, 4 deletions
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 <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;
}