From 5916d5866c109b17471a9c8604635612a0aa69ae Mon Sep 17 00:00:00 2001 From: Daniel Robertson Date: Fri, 31 Jul 2015 10:24:01 -0400 Subject: tdf#92459 replace deprecated o3tl features Replace all uses of deprecated features from o3tl/compat_functional.hxx with lambda expressions. Change-Id: I6370c80dbe675da517904e535e19bf63830c3e2c Reviewed-on: https://gerrit.libreoffice.org/17450 Reviewed-by: David Ostrovsky Tested-by: David Ostrovsky --- chart2/source/inc/CommonFunctors.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'chart2/source/inc/CommonFunctors.hxx') diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx index c7bcff16c897..596af8ac9bfc 100644 --- a/chart2/source/inc/CommonFunctors.hxx +++ b/chart2/source/inc/CommonFunctors.hxx @@ -21,7 +21,6 @@ #include #include -#include #include #include #include @@ -185,10 +184,9 @@ template< class MapType > findValueInMap( const MapType & rMap, const typename MapType::mapped_type & rData ) { return ::std::find_if( rMap.begin(), rMap.end(), - ::o3tl::compose1( ::std::bind2nd( - ::std::equal_to< typename MapType::mapped_type >(), - rData ), - ::o3tl::select2nd< typename MapType::value_type >())); + [&rData] + ( const ::std::pair< typename MapType::key_type, typename MapType::mapped_type >& cp ) + { return rData == cp.second; } ); } } // namespace CommonFunctors -- cgit