lib/alsa/AllowedFormat: use std::string_view

This commit is contained in:
Max Kellermann
2021-10-23 11:41:24 +02:00
parent 0f84332654
commit b8890726f2
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ AllowedFormat::AllowedFormat(StringView s)
}
std::forward_list<AllowedFormat>
AllowedFormat::ParseList(StringView s)
AllowedFormat::ParseList(std::string_view s)
{
std::forward_list<AllowedFormat> list;
auto tail = list.before_begin();

View File

@@ -52,7 +52,7 @@ struct AllowedFormat {
*
* Throws std::runtime_error on error.
*/
static std::forward_list<AllowedFormat> ParseList(StringView s);
static std::forward_list<AllowedFormat> ParseList(std::string_view s);
};
std::string