net/StaticSocketAddress: use std::string_view instead of StringView

This commit is contained in:
Max Kellermann 2022-05-31 13:48:51 +02:00
parent b5a9d0654e
commit 6ebac6a0b2
2 changed files with 3 additions and 5 deletions

View File

@ -30,7 +30,6 @@
#include "StaticSocketAddress.hxx" #include "StaticSocketAddress.hxx"
#include "IPv4Address.hxx" #include "IPv4Address.hxx"
#include "IPv6Address.hxx" #include "IPv6Address.hxx"
#include "util/StringView.hxx"
#include <algorithm> #include <algorithm>
@ -46,7 +45,7 @@ StaticSocketAddress::operator=(SocketAddress other) noexcept
#ifdef HAVE_UN #ifdef HAVE_UN
StringView std::string_view
StaticSocketAddress::GetLocalRaw() const noexcept StaticSocketAddress::GetLocalRaw() const noexcept
{ {
return SocketAddress(*this).GetLocalRaw(); return SocketAddress(*this).GetLocalRaw();

View File

@ -34,8 +34,7 @@
#include "Features.hxx" #include "Features.hxx"
#include <cassert> #include <cassert>
#include <string_view>
struct StringView;
/** /**
* An OO wrapper for struct sockaddr_storage. * An OO wrapper for struct sockaddr_storage.
@ -120,7 +119,7 @@ public:
* @see SocketAddress::GetLocalRaw() * @see SocketAddress::GetLocalRaw()
*/ */
[[gnu::pure]] [[gnu::pure]]
StringView GetLocalRaw() const noexcept; std::string_view GetLocalRaw() const noexcept;
#endif #endif
#ifdef HAVE_TCP #ifdef HAVE_TCP