From fd0e958e95770fcea1fb1dd351dedafcfdca4b7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Apr 2021 13:58:37 +0200 Subject: [PATCH] net/SocketError: use `auto` --- src/net/SocketError.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/SocketError.hxx b/src/net/SocketError.hxx index 7a0bfd285..1b8346d36 100644 --- a/src/net/SocketError.hxx +++ b/src/net/SocketError.hxx @@ -171,7 +171,7 @@ public: }; [[gnu::pure]] -static inline std::system_error +static inline auto MakeSocketError(socket_error_t code, const char *msg) noexcept { #ifdef _WIN32 @@ -182,7 +182,7 @@ MakeSocketError(socket_error_t code, const char *msg) noexcept } [[gnu::pure]] -static inline std::system_error +static inline auto MakeSocketError(const char *msg) noexcept { return MakeSocketError(GetSocketError(), msg);