From a149d56afaeaeb384ba0122c526ebbbf51a62aca Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 25 Nov 2016 22:52:56 -0800 Subject: [PATCH] ircd::js: Swap the flags and arity argument order for trap::function. --- include/ircd/js/trap_function.h | 4 ++-- ircd/js.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ircd/js/trap_function.h b/include/ircd/js/trap_function.h index d7c306bad..a495a3412 100644 --- a/include/ircd/js/trap_function.h +++ b/include/ircd/js/trap_function.h @@ -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; diff --git a/ircd/js.cc b/ircd/js.cc index ae3524a02..d96f85457 100644 --- a/ircd/js.cc +++ b/ircd/js.cc @@ -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);