Commit 76380b2b authored by Max Kellermann's avatar Max Kellermann

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

Eliminate one temporary allocation.
parent 67b7d464
......@@ -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),
......
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