From 6f04b2230ae7b09eeecb245a99c88294e3216549 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Feb 2021 17:54:37 +0100 Subject: [PATCH] output/httpd/Page: use std::byte --- src/output/plugins/httpd/Page.hxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/output/plugins/httpd/Page.hxx b/src/output/plugins/httpd/Page.hxx index 6bcf80fa4..aaafcb295 100644 --- a/src/output/plugins/httpd/Page.hxx +++ b/src/output/plugins/httpd/Page.hxx @@ -23,7 +23,6 @@ #include "util/AllocatedArray.hxx" #include -#include #include /** @@ -32,11 +31,11 @@ * several instances hold references to one buffer. */ class Page { - AllocatedArray buffer; + AllocatedArray buffer; public: explicit Page(size_t _size) noexcept:buffer(_size) {} - explicit Page(AllocatedArray &&_buffer) noexcept + explicit Page(AllocatedArray &&_buffer) noexcept :buffer(std::move(_buffer)) {} Page(const void *data, size_t size) noexcept; @@ -45,7 +44,7 @@ public: return buffer.size(); } - const uint8_t *GetData() const noexcept { + const std::byte *GetData() const noexcept { return &buffer.front(); } };