diff --git a/src/tag/IcyMetaDataParser.cxx b/src/tag/IcyMetaDataParser.cxx index 5abd070f6..b85de2439 100644 --- a/src/tag/IcyMetaDataParser.cxx +++ b/src/tag/IcyMetaDataParser.cxx @@ -7,9 +7,12 @@ #include #include +#include #include +using std::string_view_literals::operator""sv; + #ifdef HAVE_ICU_CONVERTER void @@ -72,9 +75,9 @@ icy_parse_tag_item(TagBuilder &tag, #ifdef HAVE_ICU_CONVERTER const IcuConverter *icu_converter, #endif - const char *name, const char *value) noexcept + std::string_view name, std::string_view value) noexcept { - if (strcmp(name, "StreamTitle") == 0) { + if (name == "StreamTitle"sv) { #ifdef HAVE_ICU_CONVERTER if (icu_converter != nullptr) { try {