db/upnp: pass std::string_view to songPath()
This commit is contained in:
@@ -24,6 +24,8 @@
|
|||||||
#include "util/SplitString.hxx"
|
#include "util/SplitString.hxx"
|
||||||
#include "config/Block.hxx"
|
#include "config/Block.hxx"
|
||||||
|
|
||||||
|
#include <fmt/core.h>
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
@@ -318,10 +320,10 @@ visitSong(const UPnPDirObject &meta, const char *path,
|
|||||||
* directory name would fit.
|
* directory name would fit.
|
||||||
*/
|
*/
|
||||||
static std::string
|
static std::string
|
||||||
songPath(const std::string &servername,
|
songPath(const std::string_view servername,
|
||||||
const std::string &objid) noexcept
|
const std::string_view objid) noexcept
|
||||||
{
|
{
|
||||||
return servername + "/" + rootid + "/" + objid;
|
return fmt::format("{}/{}/{}", servername, rootid, objid);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user