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
@@ -499,7 +499,7 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) {
sorted.emplace(byOnline(user), user);
}
}
for (const auto user : _chat->lastAuthors) {
for (const auto &user : _chat->lastAuthors) {
if (user->isInaccessible()) continue;
if (!listAllSuggestions && filterNotPassedByName(user)) continue;
if (indexOfInFirstN(mrows, user, recentInlineBots) >= 0) continue;
@@ -530,7 +530,7 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) {
_channel);
} else {
mrows.reserve(mrows.size() + _channel->mgInfo->lastParticipants.size());
for (const auto user : _channel->mgInfo->lastParticipants) {
for (const auto &user : _channel->mgInfo->lastParticipants) {
if (user->isInaccessible()) continue;
if (!listAllSuggestions && filterNotPassedByName(user)) continue;
if (indexOfInFirstN(mrows, user, recentInlineBots) >= 0) continue;