diff --git a/include/ircd/m/event/refs.h b/include/ircd/m/event/refs.h index 8ff50ac5d..5a9ed0ca9 100644 --- a/include/ircd/m/event/refs.h +++ b/include/ircd/m/event/refs.h @@ -29,10 +29,10 @@ struct ircd::m::event::refs event::idx idx; public: - using closure_bool = std::function; + using closure = std::function; - bool for_each(const dbs::ref &type, const closure_bool &) const; - bool for_each(const closure_bool &) const; + bool for_each(const dbs::ref &type, const closure &) const; + bool for_each(const closure &) const; bool has(const dbs::ref &type, const event::idx &) const; bool has(const dbs::ref &type) const; diff --git a/matrix/event_refs.cc b/matrix/event_refs.cc index 5b4a0f44c..d18f1437b 100644 --- a/matrix/event_refs.cc +++ b/matrix/event_refs.cc @@ -174,7 +174,7 @@ const } bool -ircd::m::event::refs::for_each(const closure_bool &closure) +ircd::m::event::refs::for_each(const closure &closure) const { return for_each(dbs::ref(-1), closure); @@ -182,7 +182,7 @@ const bool ircd::m::event::refs::for_each(const dbs::ref &type, - const closure_bool &closure) + const closure &closure) const { if(!idx)