summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/db/plugins/simple/PrefixedLightSong.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/db/plugins/simple/PrefixedLightSong.hxx b/src/db/plugins/simple/PrefixedLightSong.hxx
index 37a2bf6b2..432df77af 100644
--- a/src/db/plugins/simple/PrefixedLightSong.hxx
+++ b/src/db/plugins/simple/PrefixedLightSong.hxx
@@ -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;
}