From b8f6d3ca976330ceddf44817b823baa089bc124b Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Tue, 1 Mar 2016 14:12:33 +0100 Subject: [PATCH] Unwrap function call from identity lambda --- include/engine/api/json_factory.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/engine/api/json_factory.hpp b/include/engine/api/json_factory.hpp index 90e3f152e..6181fd1b9 100644 --- a/include/engine/api/json_factory.hpp +++ b/include/engine/api/json_factory.hpp @@ -55,11 +55,7 @@ util::json::Object makeGeoJSONLineString(ForwardIter begin, ForwardIter end) util::json::Object geojson; geojson.values["type"] = "LineString"; util::json::Array coordinates; - std::transform(begin, end, std::back_inserter(coordinates.values), - [](const util::Coordinate loc) - { - return detail::coordinateToLonLat(loc); - }); + std::transform(begin, end, std::back_inserter(coordinates.values), &detail::coordinateToLonLat); geojson.values["coordinates"] = std::move(coordinates); return geojson; }