Commit 0120f396 authored by Max Kellermann's avatar Max Kellermann

db/upnp/Directory: TitleToPathSegment() returns rvalue reference

Eliminate one implicit std::string copy.
parent 231fffe5
......@@ -89,11 +89,11 @@ ParseDuration(const char *duration)
* this. Twonky returns directory names (titles) like 'Artist/Album'.
*/
gcc_pure
static std::string
static std::string &&
TitleToPathSegment(std::string &&s)
{
std::replace(s.begin(), s.end(), '/', '_');
return s;
return std::move(s);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment