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/model/template | |
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/model/template')
-rw-r--r-- | chart2/source/model/template/ChartTypeManager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx index 17abb3531318..69218d1ef702 100644 --- a/chart2/source/model/template/ChartTypeManager.cxx +++ b/chart2/source/model/template/ChartTypeManager.cxx @@ -45,6 +45,7 @@ #include <algorithm> #include <iterator> #include <functional> +#include <o3tl/compat_functional.hxx> using namespace ::com::sun::star; @@ -574,8 +575,7 @@ uno::Sequence< OUString > SAL_CALL ChartTypeManager::getAvailableServiceNames() // get own default templates ::std::transform( rMap.begin(), rMap.end(), ::std::back_inserter( aServices ), - []( const ::std::pair< OUString, TemplateId >& cp ) - { return cp.first; } ); + ::o3tl::select1st< tTemplateMapType::value_type >() ); // add components that were registered in the context's factory uno::Reference< container::XContentEnumerationAccess > xEnumAcc( |