Run modernizer
This commit is contained in:
@@ -28,8 +28,9 @@ struct FirstAndLastSegmentOfWay
|
||||
}
|
||||
|
||||
FirstAndLastSegmentOfWay(OSMWayID w, OSMNodeID fs, OSMNodeID ft, OSMNodeID ls, OSMNodeID lt)
|
||||
: way_id(w), first_segment_source_id(fs), first_segment_target_id(ft),
|
||||
last_segment_source_id(ls), last_segment_target_id(lt)
|
||||
: way_id(std::move(w)), first_segment_source_id(std::move(fs)),
|
||||
first_segment_target_id(std::move(ft)), last_segment_source_id(std::move(ls)),
|
||||
last_segment_target_id(std::move(lt))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ inline NodeBasedEdgeWithOSM::NodeBasedEdgeWithOSM(OSMNodeID source,
|
||||
startpoint,
|
||||
travel_mode,
|
||||
is_split),
|
||||
osm_source_id(source), osm_target_id(target)
|
||||
osm_source_id(std::move(source)), osm_target_id(std::move(target))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@ struct QueryNode
|
||||
using key_type = OSMNodeID; // type of NodeID
|
||||
using value_type = int; // type of lat,lons
|
||||
|
||||
explicit QueryNode(int lat, int lon, OSMNodeID node_id) : lat(lat), lon(lon), node_id(node_id)
|
||||
explicit QueryNode(int lat, int lon, OSMNodeID node_id)
|
||||
: lat(lat), lon(lon), node_id(std::move(node_id))
|
||||
{
|
||||
}
|
||||
QueryNode()
|
||||
|
||||
Reference in New Issue
Block a user