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

Eliminate one implicit std::string copy.
This commit is contained in:
Max Kellermann 2014-11-09 20:44:41 +01:00
parent 231fffe594
commit 0120f396ac
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/**