Skip to content

Commit

Permalink
fix(learning_based_vehicle_model): fix constVariablePointer warning (#…
Browse files Browse the repository at this point in the history
…7575)

* fix constVariablePointer warning

Signed-off-by: Ryuta Kambe <[email protected]>

* add reference

Signed-off-by: Ryuta Kambe <[email protected]>

---------

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored and KhalilSelyan committed Jul 22, 2024
1 parent f3e53c5 commit 28c2a90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ std::vector<int> createConnectionsMap(
std::vector<int> connection_map;
// index in "connection_map" is index in "connection_names_2" and value in "connection_map" is
// index in "connection_names_1"
for (auto name_2 : connection_names_2) {
for (const auto & name_2 : connection_names_2) {
int mapped_idx = -1; // -1 means that we cannot create a connection between some signals
for (std::size_t NAME_1_IDX = 0; NAME_1_IDX < connection_names_1.size(); NAME_1_IDX++) {
if (strcmp(name_2, connection_names_1[NAME_1_IDX]) == 0) { // 0 means strings are the same
Expand Down

0 comments on commit 28c2a90

Please sign in to comment.