Skip to content

Commit 074a717

Browse files
authored
fix(learning_based_vehicle_model): fix constVariableReference (autowarefoundation#8061)
fix:constVariableReference Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 3c49692 commit 074a717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simulator/learning_based_vehicle_model/src/model_connections_helpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ std::vector<int> createConnectionsMap(
3232
std::vector<int> connection_map;
3333
// index in "connection_map" is index in "connection_names_2" and value in "connection_map" is
3434
// index in "connection_names_1"
35-
for (const auto & name_2 : connection_names_2) {
35+
for (const auto * const name_2 : connection_names_2) {
3636
int mapped_idx = -1; // -1 means that we cannot create a connection between some signals
3737
for (std::size_t NAME_1_IDX = 0; NAME_1_IDX < connection_names_1.size(); NAME_1_IDX++) {
3838
if (strcmp(name_2, connection_names_1[NAME_1_IDX]) == 0) { // 0 means strings are the same

0 commit comments

Comments
 (0)