summaryrefslogtreecommitdiff
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-09 16:09:40 +0200
committerMax Kellermann <max@musicpd.org>2019-08-09 20:21:37 +0200
commit9c6850210df7157e6b7d7c7b92fc14f08a29263c (patch)
treeda4f8365ceeef3e86a92388109e76e67a24effd9 /src/playlist
parent40a288085769e83354d619500721911561b16f26 (diff)
util/UriExtract: uri_get_scheme() returns StringView
Reduce overhead by not duplicating the string.
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/PlaylistRegistry.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist/PlaylistRegistry.cxx b/src/playlist/PlaylistRegistry.cxx
index 0571cd904..7c87b4443 100644
--- a/src/playlist/PlaylistRegistry.cxx
+++ b/src/playlist/PlaylistRegistry.cxx
@@ -123,7 +123,7 @@ playlist_list_open_uri_scheme(const char *uri, Mutex &mutex,
if (playlist_plugins_enabled[i] && plugin->open_uri != nullptr &&
plugin->schemes != nullptr &&
- StringArrayContainsCase(plugin->schemes, scheme.c_str())) {
+ StringArrayContainsCase(plugin->schemes, scheme)) {
auto playlist = plugin->open_uri(uri, mutex);
if (playlist)
return playlist;