Fix GCC 15 -Wrange-loop-construct

This commit is contained in:
Ilya Fedin
2026-03-03 06:04:04 +00:00
committed by John Preston
parent ca0c9ab659
commit d52d82f7e6
30 changed files with 50 additions and 50 deletions
@@ -198,7 +198,7 @@ object_ptr<ShareBox> ShareInviteLinkBox(
comment.text = link;
}
auto &api = peer->session().api();
for (const auto thread : result) {
for (const auto &thread : result) {
auto message = Api::MessageToSend(
Api::SendAction(thread, options));
message.textWithTags = comment;