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
@@ -344,7 +344,7 @@ void ConfInviteRow::elementsPaint(
}
void prepare() override {
for (const auto user : _users) {
for (const auto &user : _users) {
delegate()->peerListAppendRow(
std::make_unique<ConfInviteRow>(user, _st));
}
@@ -485,7 +485,7 @@ ConfInviteController::ConfInviteController(
, _shareLink(std::move(shareLink)) {
if (!_shareLink) {
_skip.reserve(_prioritize.size());
for (const auto user : _prioritize) {
for (const auto &user : _prioritize) {
_skip.emplace(user);
}
}