Skip to content

Commit 26e5c4e

Browse files
TheMarexPatrick Niklaus
authored andcommitted
Fix formating
1 parent bee3bdb commit 26e5c4e

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

src/benchmarks/alias.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int main(int, char **)
5050
TIMER_START(aliased_u32);
5151
for (auto round : util::irange(0, num_rounds))
5252
{
53-
(void) round;
53+
(void)round;
5454
osrm_uint32 sum{0};
5555
osrm_uint32 mult{1};
5656
for (auto idx : indices)
@@ -69,7 +69,7 @@ int main(int, char **)
6969
TIMER_START(plain_u32);
7070
for (auto round : util::irange(0, num_rounds))
7171
{
72-
(void) round;
72+
(void)round;
7373
std::uint32_t sum{0};
7474
std::uint32_t mult{1};
7575
for (auto idx : indices)
@@ -88,7 +88,7 @@ int main(int, char **)
8888
TIMER_START(aliased_double);
8989
for (auto round : util::irange(0, num_rounds))
9090
{
91-
(void) round;
91+
(void)round;
9292
osrm_double sum{0.0};
9393
osrm_double mult{1.0};
9494
for (auto idx : indices)
@@ -108,7 +108,7 @@ int main(int, char **)
108108
TIMER_START(plain_double);
109109
for (auto round : util::irange(0, num_rounds))
110110
{
111-
(void) round;
111+
(void)round;
112112
double sum{0.0};
113113
double mult{1.0};
114114
for (auto idx : indices)

src/extractor/compressed_edge_container.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,16 @@ SegmentDuration CompressedEdgeContainer::ClipDuration(const SegmentDuration dura
103103
// ----------> via_node_id -----------> target_node_id
104104
// weight_1 weight_2
105105
// duration_1 duration_2
106-
void CompressedEdgeContainer::CompressEdge(
107-
const EdgeID edge_id_1,
108-
const EdgeID edge_id_2,
109-
const NodeID via_node_id,
110-
const NodeID target_node_id,
111-
const EdgeWeight weight1,
112-
const EdgeWeight weight2,
113-
const EdgeDuration duration1,
114-
const EdgeDuration duration2,
115-
const EdgeWeight node_weight_penalty,
116-
const EdgeDuration node_duration_penalty)
106+
void CompressedEdgeContainer::CompressEdge(const EdgeID edge_id_1,
107+
const EdgeID edge_id_2,
108+
const NodeID via_node_id,
109+
const NodeID target_node_id,
110+
const EdgeWeight weight1,
111+
const EdgeWeight weight2,
112+
const EdgeDuration duration1,
113+
const EdgeDuration duration2,
114+
const EdgeWeight node_weight_penalty,
115+
const EdgeDuration node_duration_penalty)
117116
{
118117
// remove super-trivial geometries
119118
BOOST_ASSERT(SPECIAL_EDGEID != edge_id_1);
@@ -169,7 +168,8 @@ void CompressedEdgeContainer::CompressEdge(
169168

170169
// if the via-node offers a penalty, we add the weight of the penalty as an artificial
171170
// segment that references SPECIAL_NODEID
172-
if (node_weight_penalty != INVALID_EDGE_WEIGHT && node_duration_penalty != MAXIMAL_EDGE_DURATION)
171+
if (node_weight_penalty != INVALID_EDGE_WEIGHT &&
172+
node_duration_penalty != MAXIMAL_EDGE_DURATION)
173173
{
174174
edge_bucket_list1.emplace_back(OnewayCompressedEdge{
175175
via_node_id, ClipWeight(node_weight_penalty), ClipDuration(node_duration_penalty)});

src/extractor/graph_compressor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ void GraphCompressor::Compress(
277277
graph.GetEdgeData(forward_e1).duration += forward_duration2;
278278
graph.GetEdgeData(reverse_e1).duration += reverse_duration2;
279279

280-
if (node_weight_penalty != INVALID_EDGE_WEIGHT && node_duration_penalty != MAXIMAL_EDGE_DURATION)
280+
if (node_weight_penalty != INVALID_EDGE_WEIGHT &&
281+
node_duration_penalty != MAXIMAL_EDGE_DURATION)
281282
{
282283
graph.GetEdgeData(forward_e1).weight += node_weight_penalty;
283284
graph.GetEdgeData(reverse_e1).weight += node_weight_penalty;

unit_tests/util/static_graph.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ template <unsigned NUM_NODES, unsigned NUM_EDGES> struct RandomArrayEntryFixture
6262
std::uniform_int_distribution<> node_udist(0, NUM_NODES - 1);
6363
for (unsigned i = 0; i < NUM_EDGES; i++)
6464
{
65-
edges.emplace_back(TestEdgeArrayEntry{static_cast<unsigned>(node_udist(g)), {EdgeID{i}}});
65+
edges.emplace_back(
66+
TestEdgeArrayEntry{static_cast<unsigned>(node_udist(g)), {EdgeID{i}}});
6667
}
6768

6869
for (unsigned i = 0; i < NUM_NODES; i++)

0 commit comments

Comments
 (0)