mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-30 12:32:43 +00:00
Fix pessimizing move warnings on Clang
This commit is contained in:
parent
8db0ad0cc6
commit
2571682886
@ -832,10 +832,7 @@ namespace config {
|
||||
auto undo_cmd = prep_cmd.get_optional<std::string>("undo"s);
|
||||
auto elevated = prep_cmd.get_optional<bool>("elevated"s);
|
||||
|
||||
input.emplace_back(
|
||||
std::move(do_cmd.value_or("")),
|
||||
std::move(undo_cmd.value_or("")),
|
||||
std::move(elevated.value_or(false)));
|
||||
input.emplace_back(do_cmd.value_or(""), undo_cmd.value_or(""), elevated.value_or(false));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1475,8 +1475,8 @@ namespace stream {
|
||||
// Enable QoS tagging on video traffic if requested by the client
|
||||
if (session->config.videoQosType) {
|
||||
auto address = session->video.peer.address();
|
||||
session->video.qos = std::move(platf::enable_socket_qos(ref->video_sock.native_handle(), address,
|
||||
session->video.peer.port(), platf::qos_data_type_e::video));
|
||||
session->video.qos = platf::enable_socket_qos(ref->video_sock.native_handle(), address,
|
||||
session->video.peer.port(), platf::qos_data_type_e::video);
|
||||
}
|
||||
|
||||
BOOST_LOG(debug) << "Start capturing Video"sv;
|
||||
@ -1500,8 +1500,8 @@ namespace stream {
|
||||
// Enable QoS tagging on audio traffic if requested by the client
|
||||
if (session->config.audioQosType) {
|
||||
auto address = session->audio.peer.address();
|
||||
session->audio.qos = std::move(platf::enable_socket_qos(ref->audio_sock.native_handle(), address,
|
||||
session->audio.peer.port(), platf::qos_data_type_e::audio));
|
||||
session->audio.qos = platf::enable_socket_qos(ref->audio_sock.native_handle(), address,
|
||||
session->audio.peer.port(), platf::qos_data_type_e::audio);
|
||||
}
|
||||
|
||||
BOOST_LOG(debug) << "Start capturing Audio"sv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user