2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix build with clang

This commit is contained in:
Ilya Fedin
2021-07-20 10:57:49 +04:00
committed by John Preston
parent 46d5fc1fa0
commit c5867e2293
4 changed files with 3 additions and 7 deletions

View File

@@ -1027,7 +1027,7 @@ void Instance::Private::unregisterRequest(mtpRequestId requestId) {
auto handling = 0;
do {
handling = toResend.size();
for (const auto [resendingId, afterId] : _dependentRequests) {
for (const auto &[resendingId, afterId] : _dependentRequests) {
if (toRemove.contains(afterId)) {
toRemove.emplace(resendingId);
toResend.emplace(resendingId);