DetachedSong: pass std::string&& to uri initializer
Eliminate one temporary allocation.
This commit is contained in:
parent
67b7d46432
commit
76380b2b45
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user