aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/httpserver.h')
-rw-r--r--src/httpserver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httpserver.h b/src/httpserver.h
index 991081bab8..33216a0119 100644
--- a/src/httpserver.h
+++ b/src/httpserver.h
@@ -131,7 +131,7 @@ public:
*/
void WriteReply(int nStatus, std::string_view reply = "")
{
- WriteReply(nStatus, std::as_bytes(std::span{reply.data(), reply.size()}));
+ WriteReply(nStatus, std::as_bytes(std::span{reply}));
}
void WriteReply(int nStatus, std::span<const std::byte> reply);
};
@@ -156,7 +156,7 @@ class HTTPClosure
{
public:
virtual void operator()() = 0;
- virtual ~HTTPClosure() {}
+ virtual ~HTTPClosure() = default;
};
/** Event class. This can be used either as a cross-thread trigger or as a timer.