Fix c++ formatting

This commit is contained in:
Michael Krasnyk
2017-01-03 22:11:59 +01:00
committed by Moritz Kobitzsch
parent 2640a319c1
commit 24ab71a346
12 changed files with 22 additions and 27 deletions
+5 -6
View File
@@ -14,9 +14,9 @@
#include "extractor/guidance/turn_instruction.hpp"
#include <boost/range/algorithm/min_element.hpp>
#include <boost/range/algorithm/find_if.hpp>
#include <boost/range/algorithm/count_if.hpp>
#include <boost/range/algorithm/find_if.hpp>
#include <boost/range/algorithm/min_element.hpp>
namespace osrm
{
@@ -133,8 +133,7 @@ template <typename Self> struct EnableShapeOps
// search a given eid in the intersection
auto FindEid(const EdgeID eid) const
{
return boost::range::find_if(
*self(), [eid](const auto &road) { return road.eid == eid; });
return boost::range::find_if(*self(), [eid](const auto &road) { return road.eid == eid; });
}
// find the maximum value based on a conversion operator
@@ -247,8 +246,8 @@ template <typename Self> struct EnableIntersectionOps
auto findClosestTurn(const double angle, const UnaryPredicate filter) const
{
BOOST_ASSERT(!self()->empty());
const auto candidate = boost::range::min_element(
*self(), [angle, &filter](const auto &lhs, const auto &rhs) {
const auto candidate =
boost::range::min_element(*self(), [angle, &filter](const auto &lhs, const auto &rhs) {
const auto filtered_lhs = filter(lhs), filtered_rhs = filter(rhs);
const auto deviation_lhs = util::angularDeviation(lhs.angle, angle),
deviation_rhs = util::angularDeviation(rhs.angle, angle);
@@ -13,10 +13,10 @@
namespace osrm
{
//FWD declarations
// FWD declarations
namespace util
{
class NameTable;
class NameTable;
} // namespace util
namespace extractor
@@ -30,7 +30,6 @@ namespace guidance
class IntersectionGenerator;
class CoordinateExtractor;
class MergableRoadDetector
{
public: