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)) {
|
if (!uv_exepath(buf, &buf_size)) {
|
||||||
rv = strrchr(static_cast<const char*>(buf), '/') + 1;
|
rv = strrchr(static_cast<const char*>(buf), '/') + 1;
|
||||||
}
|
}
|
||||||
return std::move(rv);
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
@ -32,7 +32,7 @@ SubmenuButton::SubmenuButton(const base::string16& title,
|
||||||
background_color_(background_color) {
|
background_color_(background_color) {
|
||||||
#if defined(OS_LINUX)
|
#if defined(OS_LINUX)
|
||||||
// Dont' use native style border.
|
// Dont' use native style border.
|
||||||
SetBorder(std::move(CreateDefaultBorder()));
|
SetBorder(CreateDefaultBorder());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (GetUnderlinePosition(title, &accelerator_, &underline_start_,
|
if (GetUnderlinePosition(title, &accelerator_, &underline_start_,
|
||||||
|
|
Loading…
Reference in a new issue