From 32c4ee29c53f6205acd37cc7efcb8c0db878c1c2 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 12 May 2020 17:47:39 -0700 Subject: [PATCH] ircd::m::vm::eval: Use delegation ctor on overloads. --- matrix/vm_eval.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/vm_eval.cc b/matrix/vm_eval.cc index eb499a488..e110036b0 100644 --- a/matrix/vm_eval.cc +++ b/matrix/vm_eval.cc @@ -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 &events, const vm::opts &opts) -:opts{&opts} +:eval{opts} { operator()(events); }