diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-09 16:09:40 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-09 20:21:37 +0200 |
commit | 9c6850210df7157e6b7d7c7b92fc14f08a29263c (patch) | |
tree | da4f8365ceeef3e86a92388109e76e67a24effd9 /src/playlist | |
parent | 40a288085769e83354d619500721911561b16f26 (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.cxx | 2 |
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; |