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

View File

@@ -3201,7 +3201,7 @@ base::weak_qptr<Ui::BoxContent> ShowForwardMessagesBox(
const auto sendMenuType = [=] {
const auto selected = state->box->collectSelectedRows();
const auto hasPaid = [&] {
for (const auto peer : selected) {
for (const auto &peer : selected) {
if (peer->starsPerMessageChecked()) {
return true;
}