Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the std::move() on const. See Issue5746. #5747

Merged
merged 1 commit into from
Feb 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,19 +559,19 @@ namespace librealsense
{
if (info_container::supports_info(info) && (info_container::get_info(info) != val)) // Append existing infos
{
_camera_info[info] += "\n" + std::move(val);
_camera_info[info] += "\n" + val;
}
else
{
_camera_info[info] = std::move(val);
_camera_info[info] = val;
}
}

void info_container::update_info(rs2_camera_info info, const std::string& val)
{
if (info_container::supports_info(info))
{
_camera_info[info] = std::move(val);
_camera_info[info] = val;
}
}
const std::string& info_container::get_info(rs2_camera_info info) const
Expand Down Expand Up @@ -1493,7 +1493,7 @@ namespace librealsense

void synthetic_sensor::register_processing_block(const processing_block_factory& pbf)
{
_pb_factories.push_back(std::make_shared<processing_block_factory>(std::move(pbf)));
_pb_factories.push_back(std::make_shared<processing_block_factory>(pbf));
}

void synthetic_sensor::register_processing_block(const std::vector<processing_block_factory>& pbfs)
Expand Down