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

View File

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