Remove redundant moves
This commit is contained in:
parent
8bcfeff3ca
commit
2ddd217425
@ -22,8 +22,8 @@ class MatchPlugin : public BasePlugin
|
|||||||
|
|
||||||
MatchPlugin(const int max_locations_map_matching,
|
MatchPlugin(const int max_locations_map_matching,
|
||||||
const double max_radius_map_matching,
|
const double max_radius_map_matching,
|
||||||
boost::optional<double> default_radius)
|
const boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius)),
|
: BasePlugin(default_radius),
|
||||||
max_locations_map_matching(max_locations_map_matching),
|
max_locations_map_matching(max_locations_map_matching),
|
||||||
max_radius_map_matching(max_radius_map_matching)
|
max_radius_map_matching(max_radius_map_matching)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -13,7 +13,7 @@ namespace osrm::engine::plugins
|
|||||||
class NearestPlugin final : public BasePlugin
|
class NearestPlugin final : public BasePlugin
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit NearestPlugin(const int max_results, boost::optional<double> default_radius);
|
explicit NearestPlugin(const int max_results, const boost::optional<double> default_radius);
|
||||||
|
|
||||||
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
||||||
const api::NearestParameters ¶ms,
|
const api::NearestParameters ¶ms,
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class BasePlugin
|
|||||||
protected:
|
protected:
|
||||||
BasePlugin() = default;
|
BasePlugin() = default;
|
||||||
|
|
||||||
BasePlugin(boost::optional<double> default_radius_) : default_radius(std::move(default_radius_))
|
BasePlugin(const boost::optional<double> default_radius_) : default_radius(default_radius_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ class TablePlugin final : public BasePlugin
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit TablePlugin(const int max_locations_distance_table,
|
explicit TablePlugin(const int max_locations_distance_table,
|
||||||
boost::optional<double> default_radius);
|
const boost::optional<double> default_radius);
|
||||||
|
|
||||||
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
||||||
const api::TableParameters ¶ms,
|
const api::TableParameters ¶ms,
|
||||||
|
|||||||
@ -33,7 +33,7 @@ class TripPlugin final : public BasePlugin
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit TripPlugin(const int max_locations_trip_, boost::optional<double> default_radius)
|
explicit TripPlugin(const int max_locations_trip_, boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius)), max_locations_trip(max_locations_trip_)
|
: BasePlugin(default_radius), max_locations_trip(max_locations_trip_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
namespace osrm::engine::plugins
|
namespace osrm::engine::plugins
|
||||||
{
|
{
|
||||||
|
|
||||||
NearestPlugin::NearestPlugin(const int max_results_, boost::optional<double> default_radius_)
|
NearestPlugin::NearestPlugin(const int max_results_, const boost::optional<double> default_radius_)
|
||||||
: BasePlugin(std::move(default_radius_)), max_results{max_results_}
|
: BasePlugin(default_radius_), max_results{max_results_}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,8 +15,8 @@ namespace osrm::engine::plugins
|
|||||||
{
|
{
|
||||||
|
|
||||||
TablePlugin::TablePlugin(const int max_locations_distance_table,
|
TablePlugin::TablePlugin(const int max_locations_distance_table,
|
||||||
boost::optional<double> default_radius)
|
const boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius)),
|
: BasePlugin(default_radius),
|
||||||
max_locations_distance_table(max_locations_distance_table)
|
max_locations_distance_table(max_locations_distance_table)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ namespace osrm::engine::plugins
|
|||||||
ViaRoutePlugin::ViaRoutePlugin(int max_locations_viaroute,
|
ViaRoutePlugin::ViaRoutePlugin(int max_locations_viaroute,
|
||||||
int max_alternatives,
|
int max_alternatives,
|
||||||
boost::optional<double> default_radius)
|
boost::optional<double> default_radius)
|
||||||
: BasePlugin(std::move(default_radius)), max_locations_viaroute(max_locations_viaroute),
|
: BasePlugin(default_radius), max_locations_viaroute(max_locations_viaroute),
|
||||||
max_alternatives(max_alternatives)
|
max_alternatives(max_alternatives)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user