Skip to content

Commit

Permalink
Remove redundant stringstream
Browse files Browse the repository at this point in the history
  • Loading branch information
rayw-dronesense committed Nov 25, 2024
1 parent 14d1932 commit a0bc0db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mavsdk/plugins/camera/camera_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1848,10 +1848,8 @@ bool CameraImpl::get_possible_options(
}

for (const auto& value : values) {
std::stringstream ss{};
ss << value.get_string();
Camera::Option option{};
option.option_id = ss.str();
option.option_id = value.get_string();
if (!is_setting_range(setting_id)) {
get_option_str(setting_id, option.option_id, option.option_description);
}
Expand Down

0 comments on commit a0bc0db

Please sign in to comment.