summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/Metadatable.cxx21
1 files changed, 6 insertions, 15 deletions
diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx
index 04872a8b1cd4..5a16527d894e 100644
--- a/sfx2/source/doc/Metadatable.cxx
+++ b/sfx2/source/doc/Metadatable.cxx
@@ -26,7 +26,6 @@
#include <rtl/random.h>
-#include <boost/bind.hpp>
#include <algorithm>
#include <list>
@@ -536,13 +535,9 @@ XmlIdRegistryDocument::XmlIdRegistry_Impl::LookupElement(
{
const XmlIdList_t::const_iterator iter(
::std::find_if(pList->begin(), pList->end(),
- ::boost::bind(
- ::std::logical_not<bool>(),
- ::boost::bind(
- ::std::logical_or<bool>(),
- ::boost::bind( &Metadatable::IsInUndo, _1 ),
- ::boost::bind( &Metadatable::IsInClipboard, _1 )
- ) ) ) );
+ [](Metadatable* item)->bool {
+ return !(item->IsInUndo() || item->IsInClipboard());
+ } ) ) ;
if (iter != pList->end())
{
return *iter;
@@ -597,13 +592,9 @@ XmlIdRegistryDocument::XmlIdRegistry_Impl::TryInsertMetadatable(
// if all elements in the list are deleted (in undo) or
// placeholders, then "steal" the id from them
if ( pList->end() == ::std::find_if(pList->begin(), pList->end(),
- ::boost::bind(
- ::std::logical_not<bool>(),
- ::boost::bind(
- ::std::logical_or<bool>(),
- ::boost::bind( &Metadatable::IsInUndo, _1 ),
- ::boost::bind( &Metadatable::IsInClipboard, _1 )
- ) ) ) )
+ [](Metadatable* item)->bool {
+ return !(item->IsInUndo() || item->IsInClipboard());
+ } ) )
{
pList->push_front( &i_rObject );
return true;