From 04e5e44c98e44a03f2343be8dd1fca21e3994fad Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 2 May 2019 02:24:49 -0700 Subject: [PATCH] ircd::m::event: Use direct reference initialization for constexprs here. --- include/ircd/m/event.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ircd/m/event.h b/include/ircd/m/event.h index dbf441128..33dd16eda 100644 --- a/include/ircd/m/event.h +++ b/include/ircd/m/event.h @@ -109,10 +109,10 @@ struct ircd::m::event using closure_idx_bool = std::function; using closure_iov_mutable = std::function; - static constexpr const size_t MAX_SIZE = 64_KiB; - static constexpr const size_t TYPE_MAX_SIZE = 256; - static constexpr const size_t STATE_KEY_MAX_SIZE = 256; - static constexpr const size_t ORIGIN_MAX_SIZE = 256; + static constexpr const size_t &MAX_SIZE {64_KiB}; + static constexpr const size_t &TYPE_MAX_SIZE {256}; + static constexpr const size_t &STATE_KEY_MAX_SIZE {256}; + static constexpr const size_t &ORIGIN_MAX_SIZE {256}; static conf::item max_size; static void essential(json::iov &event, const json::iov &content, const closure_iov_mutable &);