mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
Avoid unnecessary string copy
This commit is contained in:
parent
abb80cfa4c
commit
28e08822a3
1 changed files with 1 additions and 1 deletions
|
|
@ -712,7 +712,7 @@ inline std::string operator + (const std::string & s1, std::string_view s2)
|
||||||
inline std::string operator + (std::string && s, std::string_view s2)
|
inline std::string operator + (std::string && s, std::string_view s2)
|
||||||
{
|
{
|
||||||
s.append(s2);
|
s.append(s2);
|
||||||
return s;
|
return std::move(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue