Run modernizer

This commit is contained in:
Daniel J. Hofmann
2016-01-18 16:54:30 +01:00
parent a877f8abf0
commit 4b0e1a4b19
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ template <typename RTreeT> class GeospatialQuery
public:
GeospatialQuery(RTreeT &rtree_, std::shared_ptr<CoordinateList> coordinates_)
: rtree(rtree_), coordinates(coordinates_)
: rtree(rtree_), coordinates(std::move(coordinates_))
{
}
@@ -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))
{
}
+1 -1
View File
@@ -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))
{
}
+2 -1
View File
@@ -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()