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

View File

@ -28,7 +28,7 @@ template <typename RTreeT> class GeospatialQuery
public: public:
GeospatialQuery(RTreeT &rtree_, std::shared_ptr<CoordinateList> coordinates_) GeospatialQuery(RTreeT &rtree_, std::shared_ptr<CoordinateList> coordinates_)
: rtree(rtree_), coordinates(coordinates_) : rtree(rtree_), coordinates(std::move(coordinates_))
{ {
} }

View File

@ -28,8 +28,9 @@ struct FirstAndLastSegmentOfWay
} }
FirstAndLastSegmentOfWay(OSMWayID w, OSMNodeID fs, OSMNodeID ft, OSMNodeID ls, OSMNodeID lt) FirstAndLastSegmentOfWay(OSMWayID w, OSMNodeID fs, OSMNodeID ft, OSMNodeID ls, OSMNodeID lt)
: way_id(w), first_segment_source_id(fs), first_segment_target_id(ft), : way_id(std::move(w)), first_segment_source_id(std::move(fs)),
last_segment_source_id(ls), last_segment_target_id(lt) first_segment_target_id(std::move(ft)), last_segment_source_id(std::move(ls)),
last_segment_target_id(std::move(lt))
{ {
} }

View File

@ -123,7 +123,7 @@ inline NodeBasedEdgeWithOSM::NodeBasedEdgeWithOSM(OSMNodeID source,
startpoint, startpoint,
travel_mode, travel_mode,
is_split), is_split),
osm_source_id(source), osm_target_id(target) osm_source_id(std::move(source)), osm_target_id(std::move(target))
{ {
} }

View File

@ -19,7 +19,8 @@ struct QueryNode
using key_type = OSMNodeID; // type of NodeID using key_type = OSMNodeID; // type of NodeID
using value_type = int; // type of lat,lons 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() QueryNode()

View File

@ -208,7 +208,7 @@ int main(const int argc, const char *argv[]) try
// Allocate a memory layout in shared memory, deallocate previous // Allocate a memory layout in shared memory, deallocate previous
auto *layout_memory = SharedMemoryFactory::Get(layout_region, sizeof(SharedDataLayout)); auto *layout_memory = SharedMemoryFactory::Get(layout_region, sizeof(SharedDataLayout));
auto *shared_layout_ptr = new (layout_memory->Ptr()) SharedDataLayout(); auto shared_layout_ptr = new (layout_memory->Ptr()) SharedDataLayout();
shared_layout_ptr->SetBlockSize<char>(SharedDataLayout::FILE_INDEX_PATH, shared_layout_ptr->SetBlockSize<char>(SharedDataLayout::FILE_INDEX_PATH,
file_index_path.length() + 1); file_index_path.length() + 1);