0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️:vm::eval: Use delegation ctor on overloads.

This commit is contained in:
Jason Volk 2020-05-12 17:47:39 -07:00
parent 13003986bc
commit 32c4ee29c5

View file

@ -315,7 +315,7 @@ ircd::m::vm::eval::eval(const event &event,
ircd::m::vm::eval::eval(const json::array &pdus,
const vm::opts &opts)
:opts{&opts}
:eval{opts}
{
// Sort the events first to avoid complicating the evals; the events might
// be from different rooms but it doesn't matter.
@ -326,7 +326,7 @@ ircd::m::vm::eval::eval(const json::array &pdus,
ircd::m::vm::eval::eval(const vector_view<m::event> &events,
const vm::opts &opts)
:opts{&opts}
:eval{opts}
{
operator()(events);
}