0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 15:28:20 +02:00

ircd:Ⓜ️:room: Minor cleanup; move ctor defs out of class.

This commit is contained in:
Jason Volk 2019-09-19 11:31:10 -07:00
parent d4b0dbaa8c
commit 083493dd1c

View file

@ -167,22 +167,11 @@ struct ircd::m::room
room(const id &room_id,
const string_view &event_id,
const vm::copts *const &copts = nullptr,
const event::fetch::opts *const &fopts = nullptr)
:room_id{room_id}
,event_id{event_id? event::id{event_id} : event::id{}}
,copts{copts}
,fopts{fopts}
{}
const event::fetch::opts *const &fopts = nullptr);
room(const id &room_id,
room(const id &room_id = {},
const vm::copts *const &copts = nullptr,
const event::fetch::opts *const &fopts = nullptr)
:room_id{room_id}
,copts{copts}
,fopts{fopts}
{}
room() = default;
const event::fetch::opts *const &fopts = nullptr);
// Index of create event
static event::idx index(const id &, std::nothrow_t);
@ -205,6 +194,26 @@ struct ircd::m::room
#include "server_acl.h"
#include "bootstrap.h"
inline
ircd::m::room::room(const id &room_id,
const string_view &event_id,
const vm::copts *const &copts,
const event::fetch::opts *const &fopts)
:room_id{room_id}
,event_id{event_id? event::id{event_id} : event::id{}}
,copts{copts}
,fopts{fopts}
{}
inline
ircd::m::room::room(const id &room_id,
const vm::copts *const &copts,
const event::fetch::opts *const &fopts)
:room_id{room_id}
,copts{copts}
,fopts{fopts}
{}
inline ircd::m::room::operator
const ircd::m::room::id &()
const