DetachedSong: pass std::string&& to uri initializer

Eliminate one temporary allocation.
This commit is contained in:
Max Kellermann 2017-02-08 09:42:09 +01:00
parent 67b7d46432
commit 76380b2b45

View File

@ -24,7 +24,7 @@
#include "fs/Traits.hxx"
DetachedSong::DetachedSong(const LightSong &other)
:uri(other.GetURI().c_str()),
:uri(other.GetURI()),
real_uri(other.real_uri != nullptr ? other.real_uri : ""),
tag(*other.tag),
mtime(other.mtime),