diff --git a/Descriptors/DescriptionFactory.cpp b/Descriptors/DescriptionFactory.cpp index 2ed10ede5..38f2f32fe 100644 --- a/Descriptors/DescriptionFactory.cpp +++ b/Descriptors/DescriptionFactory.cpp @@ -50,19 +50,21 @@ void DescriptionFactory::SetStartSegment(const PhantomNode &source, const bool t BOOST_ASSERT(path_description.back().duration == segment_duration); } -void DescriptionFactory::SetEndSegment(const PhantomNode &target, const bool traversed_in_reverse, const bool is_via_location) +void DescriptionFactory::SetEndSegment(const PhantomNode &target, + const bool traversed_in_reverse, + const bool is_via_location) { target_phantom = target; const EdgeWeight segment_duration = (traversed_in_reverse ? target.reverse_weight : target.forward_weight); - path_description.emplace_back( - target.location, - target.name_id, - segment_duration, - 0.f, - is_via_location ? TurnInstruction::ReachViaLocation : TurnInstruction::NoTurn, - true, - true); + path_description.emplace_back(target.location, + target.name_id, + segment_duration, + 0.f, + is_via_location ? TurnInstruction::ReachViaLocation + : TurnInstruction::NoTurn, + true, + true); BOOST_ASSERT(path_description.back().duration == segment_duration); }