0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

modules/client/rooms/context: Fix -Wdangling-pointer to an unnamed temporary (gcc-12).

This commit is contained in:
Jason Volk 2023-01-15 18:10:36 -08:00
parent 310053abcf
commit c78ab62227

View file

@ -55,7 +55,7 @@ get__context(client &client,
url::decode(event_id, request.parv[2]) url::decode(event_id, request.parv[2])
}; };
const auto &limit const auto limit
{ {
std::min(request.query.get<size_t>("limit", default_limit), size_t(limit_max)) std::min(request.query.get<size_t>("limit", default_limit), size_t(limit_max))
}; };