@@ -69,7 +69,7 @@ NodeParameters::NodeParameters(
69
69
if (NULL == yaml_params) {
70
70
throw std::runtime_error (" Failed to initialize yaml params struct" );
71
71
}
72
- if (!rcl_parse_yaml_file (yaml_path.c_str (), yaml_params, options-> allocator )) {
72
+ if (!rcl_parse_yaml_file (yaml_path.c_str (), yaml_params)) {
73
73
throw std::runtime_error (" Failed to parse parameters " + yaml_path);
74
74
}
75
75
@@ -81,7 +81,7 @@ NodeParameters::NodeParameters(
81
81
throw std::runtime_error (" Node name and namespace were not set" );
82
82
}
83
83
std::string combined_name;
84
- if (' /' == node_namespace.at (node_namespace.size ()- 1 )) {
84
+ if (' /' == node_namespace.at (node_namespace.size () - 1 )) {
85
85
combined_name = node_namespace + node_name;
86
86
} else {
87
87
combined_name = node_namespace + ' /' + node_name;
@@ -151,12 +151,12 @@ NodeParameters::NodeParameters(
151
151
}
152
152
parameters.emplace_back (param_name, strings);
153
153
} else {
154
- rcl_yaml_node_struct_fini (yaml_params, options-> allocator );
154
+ rcl_yaml_node_struct_fini (yaml_params);
155
155
throw std::runtime_error (" Invalid parameter from parser" );
156
156
}
157
157
}
158
158
}
159
- rcl_yaml_node_struct_fini (yaml_params, options-> allocator );
159
+ rcl_yaml_node_struct_fini (yaml_params);
160
160
161
161
// Set the parameters
162
162
rcl_interfaces::msg::SetParametersResult result = set_parameters_atomically (parameters);
0 commit comments