mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-29 08:46:53 +00:00
Remove unnecessary moves in return statements
This commit is contained in:
parent
ff046bb707
commit
0fa406dbb7
@ -350,7 +350,7 @@ namespace cuda {
|
||||
|
||||
handle.handle_flags[SESSION_HANDLE] = true;
|
||||
|
||||
return std::move(handle);
|
||||
return handle;
|
||||
}
|
||||
|
||||
const char *
|
||||
|
||||
@ -234,7 +234,7 @@ std::optional<tex_t> tex_t::make(int height, int pitch) {
|
||||
|
||||
CU_CHECK_OPT(cudaCreateTextureObject(&tex.texture.linear, &res, &desc, nullptr), "Couldn't create cuda texture that uses linear interpolation");
|
||||
|
||||
return std::move(tex);
|
||||
return tex;
|
||||
}
|
||||
|
||||
tex_t::tex_t() : array {}, texture { INVALID_TEXTURE } {}
|
||||
|
||||
@ -769,7 +769,7 @@ namespace egl {
|
||||
|
||||
gl_drain_errors;
|
||||
|
||||
return std::move(sws);
|
||||
return sws;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@ -222,14 +222,13 @@ namespace task_pool_util {
|
||||
if (!_tasks.empty()) {
|
||||
__task task = std::move(_tasks.front());
|
||||
_tasks.pop_front();
|
||||
return std::move(task);
|
||||
return task;
|
||||
}
|
||||
|
||||
if (!_timer_tasks.empty() && std::get<0>(_timer_tasks.back()) <= std::chrono::steady_clock::now()) {
|
||||
__task task = std::move(std::get<1>(_timer_tasks.back()));
|
||||
_timer_tasks.pop_back();
|
||||
|
||||
return std::move(task);
|
||||
return task;
|
||||
}
|
||||
|
||||
return std::nullopt;
|
||||
|
||||
@ -1498,7 +1498,7 @@ namespace video {
|
||||
|
||||
encode_session.session = std::move(*session);
|
||||
|
||||
return std::move(encode_session);
|
||||
return encode_session;
|
||||
}
|
||||
|
||||
encode_e
|
||||
|
||||
Loading…
Reference in New Issue
Block a user