0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +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])
};
const auto &limit
const auto limit
{
std::min(request.query.get<size_t>("limit", default_limit), size_t(limit_max))
};