mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:event::prev: Use size_t indexing rather than uint.
This commit is contained in:
parent
f3ba0f163b
commit
17a9763da6
2 changed files with 12 additions and 12 deletions
|
@ -35,13 +35,13 @@ struct ircd::m::event::prev
|
|||
{
|
||||
enum cond :int;
|
||||
|
||||
std::tuple<event::id, string_view> auth_events(const uint &idx) const;
|
||||
std::tuple<event::id, string_view> prev_states(const uint &idx) const;
|
||||
std::tuple<event::id, string_view> prev_events(const uint &idx) const;
|
||||
std::tuple<event::id, string_view> auth_events(const size_t &idx) const;
|
||||
std::tuple<event::id, string_view> prev_states(const size_t &idx) const;
|
||||
std::tuple<event::id, string_view> prev_events(const size_t &idx) const;
|
||||
|
||||
event::id auth_event(const uint &idx) const;
|
||||
event::id prev_state(const uint &idx) const;
|
||||
event::id prev_event(const uint &idx) const;
|
||||
event::id auth_event(const size_t &idx) const;
|
||||
event::id prev_state(const size_t &idx) const;
|
||||
event::id prev_event(const size_t &idx) const;
|
||||
|
||||
size_t auth_events_count() const;
|
||||
size_t prev_states_count() const;
|
||||
|
|
|
@ -1711,28 +1711,28 @@ const
|
|||
}
|
||||
|
||||
ircd::m::event::id
|
||||
ircd::m::event::prev::auth_event(const uint &idx)
|
||||
ircd::m::event::prev::auth_event(const size_t &idx)
|
||||
const
|
||||
{
|
||||
return std::get<0>(auth_events(idx));
|
||||
}
|
||||
|
||||
ircd::m::event::id
|
||||
ircd::m::event::prev::prev_state(const uint &idx)
|
||||
ircd::m::event::prev::prev_state(const size_t &idx)
|
||||
const
|
||||
{
|
||||
return std::get<0>(prev_states(idx));
|
||||
}
|
||||
|
||||
ircd::m::event::id
|
||||
ircd::m::event::prev::prev_event(const uint &idx)
|
||||
ircd::m::event::prev::prev_event(const size_t &idx)
|
||||
const
|
||||
{
|
||||
return std::get<0>(prev_events(idx));
|
||||
}
|
||||
|
||||
std::tuple<ircd::m::event::id, ircd::string_view>
|
||||
ircd::m::event::prev::auth_events(const uint &idx)
|
||||
ircd::m::event::prev::auth_events(const size_t &idx)
|
||||
const
|
||||
{
|
||||
const json::array &auth_event
|
||||
|
@ -1747,7 +1747,7 @@ const
|
|||
}
|
||||
|
||||
std::tuple<ircd::m::event::id, ircd::string_view>
|
||||
ircd::m::event::prev::prev_states(const uint &idx)
|
||||
ircd::m::event::prev::prev_states(const size_t &idx)
|
||||
const
|
||||
{
|
||||
const json::array &state_event
|
||||
|
@ -1762,7 +1762,7 @@ const
|
|||
}
|
||||
|
||||
std::tuple<ircd::m::event::id, ircd::string_view>
|
||||
ircd::m::event::prev::prev_events(const uint &idx)
|
||||
ircd::m::event::prev::prev_events(const size_t &idx)
|
||||
const
|
||||
{
|
||||
const json::array &prev_event
|
||||
|
|
Loading…
Add table
Reference in a new issue