diff options
author | Daniel Robertson <danlrobertson89@gmail.com> | 2015-08-11 14:51:35 -0400 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-11 22:29:12 +0000 |
commit | 87130a4e18347d055331ff53da3b1a79548ff24a (patch) | |
tree | f1d3cfe7b7a2a9e7c9b3efbeddf23da9e7b9845e /chart2/source/inc/CommonFunctors.hxx | |
parent | ae6afadbc0c6ffcdbfd0db6bb3b0166295d5effd (diff) |
tdf#92459 Cleanup unclear lambdas
Replace lambdas used to select the first/second member of a pair with
the new simplified select1st/2nd from o3tl/compat_functional. There
should be no side effects due to this change.
Change-Id: I17f37796e0c4defe96a10aa491d192adb9eebb89
Reviewed-on: https://gerrit.libreoffice.org/17656
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'chart2/source/inc/CommonFunctors.hxx')
-rw-r--r-- | chart2/source/inc/CommonFunctors.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx index 596af8ac9bfc..692b0da2fe8c 100644 --- a/chart2/source/inc/CommonFunctors.hxx +++ b/chart2/source/inc/CommonFunctors.hxx @@ -185,7 +185,7 @@ template< class MapType > { return ::std::find_if( rMap.begin(), rMap.end(), [&rData] - ( const ::std::pair< typename MapType::key_type, typename MapType::mapped_type >& cp ) + ( const typename MapType::value_type& cp ) { return rData == cp.second; } ); } |