0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:event: Use direct reference initialization for constexprs here.

This commit is contained in:
Jason Volk 2019-05-02 02:24:49 -07:00
parent ab61b38ad0
commit 04e5e44c98

View file

@ -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 &);