mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
ircd:Ⓜ️:room: Minor cleanup; move ctor defs out of class.
This commit is contained in:
parent
d4b0dbaa8c
commit
083493dd1c
1 changed files with 23 additions and 14 deletions
|
@ -167,22 +167,11 @@ struct ircd::m::room
|
||||||
room(const id &room_id,
|
room(const id &room_id,
|
||||||
const string_view &event_id,
|
const string_view &event_id,
|
||||||
const vm::copts *const &copts = nullptr,
|
const vm::copts *const &copts = nullptr,
|
||||||
const event::fetch::opts *const &fopts = 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}
|
|
||||||
{}
|
|
||||||
|
|
||||||
room(const id &room_id,
|
room(const id &room_id = {},
|
||||||
const vm::copts *const &copts = nullptr,
|
const vm::copts *const &copts = nullptr,
|
||||||
const event::fetch::opts *const &fopts = nullptr)
|
const event::fetch::opts *const &fopts = nullptr);
|
||||||
:room_id{room_id}
|
|
||||||
,copts{copts}
|
|
||||||
,fopts{fopts}
|
|
||||||
{}
|
|
||||||
|
|
||||||
room() = default;
|
|
||||||
|
|
||||||
// Index of create event
|
// Index of create event
|
||||||
static event::idx index(const id &, std::nothrow_t);
|
static event::idx index(const id &, std::nothrow_t);
|
||||||
|
@ -205,6 +194,26 @@ struct ircd::m::room
|
||||||
#include "server_acl.h"
|
#include "server_acl.h"
|
||||||
#include "bootstrap.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
|
inline ircd::m::room::operator
|
||||||
const ircd::m::room::id &()
|
const ircd::m::room::id &()
|
||||||
const
|
const
|
||||||
|
|
Loading…
Reference in a new issue