refactor: remove unnecessary std::moves in linux code (#12951)
The compiler was complaining that the move was preventing copy elision.
This commit is contained in:
parent
8fa48d1c04
commit
73eb5af2cc
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ std::string get_executable_basename() {
|
|||
if (!uv_exepath(buf, &buf_size)) {
|
||||
rv = strrchr(static_cast<const char*>(buf), '/') + 1;
|
||||
}
|
||||
return std::move(rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue