summaryrefslogtreecommitdiff
path: root/chart2/source/model/template/ChartTypeManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/model/template/ChartTypeManager.cxx')
-rw-r--r--chart2/source/model/template/ChartTypeManager.cxx4
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(