diff options
author | Max Kellermann <max@musicpd.org> | 2020-04-02 20:10:36 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-04-02 20:14:00 +0200 |
commit | f0923231d0bf47f60a639bf57dd86010b7978067 (patch) | |
tree | 58a2b260e5276765b2775edf9d2cf86acd5da6d5 /src/storage/StorageInterface.hxx | |
parent | dadf054fbb197e78de33a0705d98514a5320e391 (diff) |
storage/Interface: pass std::string_view to MapChildFS()
Diffstat (limited to 'src/storage/StorageInterface.hxx')
-rw-r--r-- | src/storage/StorageInterface.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/storage/StorageInterface.hxx b/src/storage/StorageInterface.hxx index 71a7358e4..e1a0626a6 100644 --- a/src/storage/StorageInterface.hxx +++ b/src/storage/StorageInterface.hxx @@ -24,6 +24,7 @@ #include <memory> #include <string> +#include <string_view> struct StorageFileInfo; class AllocatedPath; @@ -73,8 +74,8 @@ public: virtual AllocatedPath MapFS(const char *uri_utf8) const noexcept; gcc_pure - AllocatedPath MapChildFS(const char *uri_utf8, - const char *child_utf8) const noexcept; + AllocatedPath MapChildFS(std::string_view uri_utf8, + std::string_view child_utf8) const noexcept; /** * Check if the given URI points inside this storage. If yes, |