summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
diff options
context:
space:
mode:
authorDaniel Robertson <danlrobertson89@gmail.com>2015-08-11 14:51:35 -0400
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-08-11 22:29:12 +0000
commit87130a4e18347d055331ff53da3b1a79548ff24a (patch)
treef1d3cfe7b7a2a9e7c9b3efbeddf23da9e7b9845e /chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
parentae6afadbc0c6ffcdbfd0db6bb3b0166295d5effd (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/controller/chartapiwrapper/ChartDocumentWrapper.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
index d34d9977aa23..d89abccf42ae 100644
--- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx
@@ -66,6 +66,7 @@
#include <vector>
#include <algorithm>
#include <functional>
+#include <o3tl/compat_functional.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart;
@@ -1459,8 +1460,7 @@ uno::Sequence< OUString > SAL_CALL ChartDocumentWrapper::getAvailableServiceName
::std::transform( rMap.begin(), rMap.end(),
aResult.getArray(),
- []( const ::std::pair< OUString, eServiceType >& cp )
- { return cp.first; } );
+ ::o3tl::select1st< tServiceNameMap::value_type >() );
return aResult;