diff options
| author | levlam <levlam@telegram.org> | 2025-07-05 04:31:34 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-07-05 04:31:34 +0300 |
| commit | 6ceb4af1ab4d43a7bddb492bc1e51f5e4992b2a1 (patch) | |
| tree | 8af4d3cd26c3827d023df2e76395fdf85ed50877 /tde2e/td/e2e/Blockchain.cpp | |
| parent | e39c7bb437fd98cf91a97f066b52ca86f44c2fb3 (diff) | |
Fix GCC 7 warnings.
Diffstat (limited to 'tde2e/td/e2e/Blockchain.cpp')
| -rw-r--r-- | tde2e/td/e2e/Blockchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tde2e/td/e2e/Blockchain.cpp b/tde2e/td/e2e/Blockchain.cpp index a477beade..fc0979668 100644 --- a/tde2e/td/e2e/Blockchain.cpp +++ b/tde2e/td/e2e/Blockchain.cpp @@ -370,8 +370,8 @@ td::Status State::set_group_state(GroupStateRef group_state, const Permissions & } td::int32 needed_flags = 0; - for (const auto &[p, flags] : old_participants) { - if (!new_participants.count(p)) { + for (const auto &participant : old_participants) { + if (!new_participants.count(participant.first)) { if (!permissions.may_remove_users()) { return Error(E::InvalidBlock_NoPermissions, "Can't remove users"); } |
