summaryrefslogtreecommitdiff
path: root/slideshow/test
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/test')
-rw-r--r--slideshow/test/testshape.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/slideshow/test/testshape.cxx b/slideshow/test/testshape.cxx
index 46173d9dcc5a..a64ac20cebd2 100644
--- a/slideshow/test/testshape.cxx
+++ b/slideshow/test/testshape.cxx
@@ -33,8 +33,6 @@
#include "tests.hxx"
#include "com/sun/star/presentation/XSlideShowView.hpp"
-#include <o3tl/compat_functional.hxx>
-
#include <boost/bind.hpp>
namespace target = slideshow::internal;
@@ -130,20 +128,18 @@ private:
if( std::none_of(
maViewLayers.begin(),
maViewLayers.end(),
- boost::bind( std::equal_to< target::ViewLayerSharedPtr >(),
- boost::cref( rNewLayer ),
- boost::bind( o3tl::select1st<ViewVector::value_type>(),
- _1 ))) )
+ [&rNewLayer]
+ ( const ::std::pair< ViewVector::key_type, ViewVector::mapped_type >& cp )
+ { return cp.first == rNewLayer; } ) )
throw std::exception();
maViewLayers.erase(
std::remove_if(
maViewLayers.begin(),
maViewLayers.end(),
- boost::bind( std::equal_to< target::ViewLayerSharedPtr >(),
- boost::cref( rNewLayer ),
- boost::bind( o3tl::select1st<ViewVector::value_type>(),
- _1 ))));
+ [&rNewLayer]
+ ( const ::std::pair< ViewVector::key_type, ViewVector::mapped_type >& cp )
+ { return cp.first == rNewLayer; } ) );
return true;
}
virtual bool clearAllViewLayers()