mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd:Ⓜ️:event: Use direct reference initialization for constexprs here.
This commit is contained in:
parent
ab61b38ad0
commit
04e5e44c98
1 changed files with 4 additions and 4 deletions
|
@ -109,10 +109,10 @@ struct ircd::m::event
|
|||
using closure_idx_bool = std::function<bool (const idx &)>;
|
||||
using closure_iov_mutable = std::function<void (json::iov &)>;
|
||||
|
||||
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<size_t> max_size;
|
||||
|
||||
static void essential(json::iov &event, const json::iov &content, const closure_iov_mutable &);
|
||||
|
|
Loading…
Reference in a new issue