lib/expat/ExpatParser: pass std::string_view to Parse()

This commit is contained in:
Max Kellermann
2024-01-04 12:58:20 +01:00
parent 4c9942534c
commit ee4b49d12f
9 changed files with 18 additions and 24 deletions

View File

@@ -297,9 +297,8 @@ private:
throw std::runtime_error("Unexpected Content-Type from WebDAV server");
}
void OnData(std::span<const std::byte> _src) final {
auto src = ToStringView(_src);
Parse(src.data(), src.size());
void OnData(std::span<const std::byte> src) final {
Parse(ToStringView(src));
}
void OnEnd() final {