Skip to content

Commit

Permalink
refactor(sampling_planner_module): use std::make_shared (#7226)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem authored and KhalilSelyan committed Jul 22, 2024
1 parent c10f25a commit c60e87e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ SamplingPlannerModule::SamplingPlannerModule(
: SceneModuleInterface{name, node, rtc_interface_ptr_map, objects_of_interest_marker_interface_ptr_map}, // NOLINT
vehicle_info_{vehicle_info_util::VehicleInfoUtil(node).getVehicleInfo()}
{
internal_params_ =
std::shared_ptr<SamplingPlannerInternalParameters>(new SamplingPlannerInternalParameters{});
internal_params_ = std::make_shared<SamplingPlannerInternalParameters>();
updateModuleParams(parameters);

// check if the path is empty
Expand Down

0 comments on commit c60e87e

Please sign in to comment.