mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::js: Swap the flags and arity argument order for trap::function.
This commit is contained in:
parent
f2340367be
commit
a149d56afa
2 changed files with 4 additions and 4 deletions
|
@ -31,8 +31,8 @@ struct trap::function
|
|||
|
||||
trap *member;
|
||||
const std::string name;
|
||||
const uint arity;
|
||||
const uint flags;
|
||||
const uint arity;
|
||||
closure lambda;
|
||||
|
||||
protected:
|
||||
|
@ -47,8 +47,8 @@ struct trap::function
|
|||
|
||||
function(trap &,
|
||||
std::string name,
|
||||
const uint &arity = 0,
|
||||
const uint &flags = 0,
|
||||
const uint &arity = 0,
|
||||
const closure & = {});
|
||||
|
||||
function(function &&) = delete;
|
||||
|
|
|
@ -642,13 +642,13 @@ ircd::js::trap::property::on_set(function::handle,
|
|||
|
||||
ircd::js::trap::function::function(trap &member,
|
||||
std::string name,
|
||||
const uint &arity,
|
||||
const uint &flags,
|
||||
const uint &arity,
|
||||
const closure &lambda)
|
||||
:member{&member}
|
||||
,name{std::move(name)}
|
||||
,arity{arity}
|
||||
,flags{flags}
|
||||
,arity{arity}
|
||||
,lambda{lambda}
|
||||
{
|
||||
member.memfun.emplace(this->name, this);
|
||||
|
|
Loading…
Reference in a new issue