Skip to content

Commit

Permalink
code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 26, 2023
1 parent c1c334f commit 85280e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v2i-hub/CDASimAdapter/src/CDASimConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ namespace CDASimAdapter{
return json_v;
}

Json::Value CDASimConnection::get_sensor_by_id(std::string &sensor_id)
Json::Value CDASimConnection::get_sensor_by_id(const std::string &sensor_id)
{
Json::Value result;
if(_sensors_json_v.empty())
Expand Down
2 changes: 1 addition & 1 deletion src/v2i-hub/CDASimAdapter/src/include/CDASimConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ namespace CDASimAdapter {
* @brief Search the list of sensors stored by this plugin and identify the sensor based on the input id.
* @param sensor_id A unique sensor identifier
*/
Json::Value get_sensor_by_id(std::string &sensor_id);
Json::Value get_sensor_by_id(const std::string &sensor_id);

private:
/**
Expand Down

0 comments on commit 85280e4

Please sign in to comment.