mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 00:03:45 +02:00
ircd: Fix cast-conversion based reference-constructions.
This commit is contained in:
parent
7aaee4c68d
commit
a371bc3e1f
|
@ -105,7 +105,7 @@ void
|
|||
ircd::db::_assign_invalid(tuple &t,
|
||||
const cell &cell)
|
||||
{
|
||||
const column &c{cell};
|
||||
const column &c(cell);
|
||||
if(!c)
|
||||
return;
|
||||
|
||||
|
@ -143,7 +143,7 @@ void
|
|||
ircd::db::_assign_valid(tuple &t,
|
||||
const cell &cell)
|
||||
{
|
||||
const column &c{cell};
|
||||
const column &c(cell);
|
||||
const auto &descriptor
|
||||
{
|
||||
describe(c)
|
||||
|
|
|
@ -3818,7 +3818,7 @@ ircd::db::for_each(const txn &t,
|
|||
}};
|
||||
|
||||
const database &d(t);
|
||||
const rocksdb::WriteBatch &wb{t};
|
||||
const rocksdb::WriteBatch &wb(t);
|
||||
txn::handler h{d, re};
|
||||
wb.Iterate(&h);
|
||||
}
|
||||
|
@ -3828,7 +3828,7 @@ ircd::db::for_each(const txn &t,
|
|||
const delta_closure_bool &closure)
|
||||
{
|
||||
const database &d(t);
|
||||
const rocksdb::WriteBatch &wb{t};
|
||||
const rocksdb::WriteBatch &wb(t);
|
||||
txn::handler h{d, closure};
|
||||
wb.Iterate(&h);
|
||||
return h._continue;
|
||||
|
|
|
@ -505,7 +505,7 @@ ircd::m::dbs::_index_event_refs_prev(db::txn &txn,
|
|||
assert(opts.appendix.test(appendix::EVENT_REFS));
|
||||
assert(opts.event_refs.test(uint(ref::NEXT)));
|
||||
|
||||
const event::prev &prev{event};
|
||||
const event::prev prev{event};
|
||||
for(size_t i(0); i < prev.prev_events_count(); ++i)
|
||||
{
|
||||
const event::id &prev_id
|
||||
|
@ -563,7 +563,7 @@ ircd::m::dbs::_index_event_refs_auth(db::txn &txn,
|
|||
if(!event::auth::is_power_event(event))
|
||||
return;
|
||||
|
||||
const event::prev &prev{event};
|
||||
const event::prev prev{event};
|
||||
for(size_t i(0); i < prev.auth_events_count(); ++i)
|
||||
{
|
||||
const event::id &auth_id
|
||||
|
@ -1221,7 +1221,7 @@ ircd::m::dbs::_index_room_head_resolve(db::txn &txn,
|
|||
if(opts.op != db::op::SET)
|
||||
return;
|
||||
|
||||
const m::event::prev &prev{event};
|
||||
const event::prev prev{event};
|
||||
for(const json::array &p : json::get<"prev_events"_>(prev))
|
||||
{
|
||||
const auto &event_id
|
||||
|
|
|
@ -221,7 +221,11 @@ try
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response{request};
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
||||
const json::object &one_time_keys
|
||||
{
|
||||
response["one_time_keys"]
|
||||
|
|
|
@ -254,7 +254,11 @@ try
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response{request};
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
||||
const json::object &device_keys
|
||||
{
|
||||
response["device_keys"]
|
||||
|
|
|
@ -420,7 +420,7 @@ ircd::m::user::profile::fetch(const m::user &user,
|
|||
|
||||
federation_request.wait(seconds(remote_request_timeout));
|
||||
const http::code &code{federation_request.get()};
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
federation_request
|
||||
};
|
||||
|
|
|
@ -5374,7 +5374,7 @@ console_cmd__crt(opt &out, const string_view &line)
|
|||
if(listener.name() != targ)
|
||||
continue;
|
||||
|
||||
const json::object &config
|
||||
const json::object config
|
||||
{
|
||||
listener
|
||||
};
|
||||
|
@ -6461,7 +6461,7 @@ console_cmd__event(opt &out, const string_view &line)
|
|||
if(m::event::auth::is_power_event(event))
|
||||
out << "+ POWER EVENT" << std::endl;
|
||||
|
||||
const m::event::prev &prev{event};
|
||||
const m::event::prev prev{event};
|
||||
if(prev.auth_events_count() || prev.prev_events_count())
|
||||
out << std::endl;
|
||||
|
||||
|
@ -10302,7 +10302,7 @@ console_cmd__user__tokens(opt &out, const string_view &line)
|
|||
at<"state_key"_>(event)
|
||||
};
|
||||
|
||||
const milliseconds &ost
|
||||
const milliseconds ost
|
||||
{
|
||||
at<"origin_server_ts"_>(event)
|
||||
};
|
||||
|
@ -11744,7 +11744,7 @@ console_cmd__fed__state(opt &out, const string_view &line)
|
|||
request.wait(out.timeout);
|
||||
request.get();
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -11827,7 +11827,7 @@ console_cmd__fed__state_ids(opt &out, const string_view &line)
|
|||
request.wait(out.timeout);
|
||||
request.get();
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -11908,7 +11908,7 @@ console_cmd__fed__backfill(opt &out, const string_view &line)
|
|||
request.wait(out.timeout);
|
||||
request.get();
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12002,7 +12002,7 @@ console_cmd__fed__frontfill(opt &out, const string_view &line)
|
|||
request.wait(out.timeout);
|
||||
request.get();
|
||||
|
||||
const json::array &response
|
||||
const json::array response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12066,7 +12066,7 @@ console_cmd__fed__event(opt &out, const string_view &line)
|
|||
return true;
|
||||
}
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12161,7 +12161,7 @@ console_cmd__fed__public_rooms(opt &out, const string_view &line)
|
|||
request.wait(out.timeout);
|
||||
request.get();
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12393,7 +12393,7 @@ console_cmd__fed__query__profile(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12430,7 +12430,7 @@ console_cmd__fed__query__directory(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12476,7 +12476,7 @@ console_cmd__fed__user__devices(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12540,7 +12540,7 @@ console_cmd__fed__user__keys__query(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12626,7 +12626,7 @@ console_cmd__fed__user__keys__claim(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12671,7 +12671,7 @@ console_cmd__fed__key(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -12757,7 +12757,7 @@ console_cmd__fed__version(opt &out, const string_view &line)
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
|
|
@ -369,7 +369,7 @@ try
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
|
|
@ -359,7 +359,7 @@ ircd::m::rooms::fetch_update(const net::hostport &hp,
|
|||
request.get()
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
|
|
@ -524,7 +524,7 @@ try
|
|||
|
||||
request.wait(seconds(auth_timeout));
|
||||
request.get();
|
||||
const json::array &events
|
||||
const json::array events
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -889,7 +889,7 @@ try
|
|||
complete.size(),
|
||||
};
|
||||
|
||||
const json::object &event
|
||||
const json::object event
|
||||
{
|
||||
request
|
||||
};
|
||||
|
|
|
@ -151,7 +151,7 @@ try
|
|||
|
||||
request.wait(milliseconds(keys_query_timeout));
|
||||
const auto &code(request.get());
|
||||
const json::array &response
|
||||
const json::array response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
@ -257,7 +257,7 @@ try
|
|||
|
||||
request.wait(milliseconds(keys_get_timeout));
|
||||
const auto &status(request.get());
|
||||
const json::object &response
|
||||
const json::object response
|
||||
{
|
||||
request
|
||||
};
|
||||
|
|
|
@ -75,7 +75,7 @@ webroot_path
|
|||
void
|
||||
init_files()
|
||||
{
|
||||
const std::string &path
|
||||
const std::string path
|
||||
{
|
||||
webroot_path
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue