Commit ddfd92e5 authored by Max Kellermann's avatar Max Kellermann

db/simple/PrefixedLightSong: templatize the constructor

parent d5fd3094
......@@ -29,9 +29,12 @@ class PrefixedLightSong : public LightSong {
std::string buffer;
public:
PrefixedLightSong(const LightSong &song, const char *base)
template<typename B>
PrefixedLightSong(const LightSong &song, B &&base)
:LightSong(song),
buffer(PathTraitsUTF8::Build(base, GetURI().c_str())) {
buffer(PathTraitsUTF8::Build(std::forward<B>(base),
GetURI()))
{
uri = buffer.c_str();
directory = nullptr;
}
......
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