reformat file according to guidelines

This commit is contained in:
Dennis Luxen 2014-10-20 10:32:57 +02:00
parent d7e25772b0
commit 2b3093a687

View File

@ -50,7 +50,8 @@ int main(int argc, char *argv[])
// enable logging // enable logging
if (argc < 3) if (argc < 3)
{ {
SimpleLogger().Write(logWARNING) << "usage:\n" << argv[0] << " <osrm> <osrm.restrictions>"; SimpleLogger().Write(logWARNING) << "usage:\n" << argv[0]
<< " <osrm> <osrm.restrictions>";
return -1; return -1;
} }
@ -76,7 +77,7 @@ int main(int argc, char *argv[])
restrictions_vector.resize(usable_restriction_count); restrictions_vector.resize(usable_restriction_count);
// load restrictions // load restrictions
if (usable_restriction_count>0) if (usable_restriction_count > 0)
{ {
restriction_ifstream.read((char *)&(restrictions_vector[0]), restriction_ifstream.read((char *)&(restrictions_vector[0]),
usable_restriction_count * sizeof(TurnRestriction)); usable_restriction_count * sizeof(TurnRestriction));
@ -109,8 +110,7 @@ int main(int argc, char *argv[])
// Building an edge-expanded graph from node-based input an turn // Building an edge-expanded graph from node-based input an turn
// restrictions // restrictions
SimpleLogger().Write() << "Starting SCC graph traversal"; SimpleLogger().Write() << "Starting SCC graph traversal";
std::shared_ptr<TarjanSCC> tarjan = std::shared_ptr<TarjanSCC> tarjan = std::make_shared<TarjanSCC>(number_of_nodes,
std::make_shared<TarjanSCC>(number_of_nodes,
edge_list, edge_list,
bollard_ID_list, bollard_ID_list,
trafficlight_ID_list, trafficlight_ID_list,