Remove unnecessary moves in return statements
This commit is contained in:
parent
ff046bb707
commit
0fa406dbb7
5 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue