From af28e3b0d7d808d2861bd0d0ed4779628ec08993 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 12 Apr 2017 23:28:04 +0300 Subject: [PATCH] Alpha 1.0.32: Fix build in Xcode. --- Telegram/SourceFiles/storage/file_download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/storage/file_download.cpp b/Telegram/SourceFiles/storage/file_download.cpp index 366d992a9..9f49cc8c8 100644 --- a/Telegram/SourceFiles/storage/file_download.cpp +++ b/Telegram/SourceFiles/storage/file_download.cpp @@ -46,7 +46,7 @@ void Downloader::requestedAmountIncrement(MTP::DcId dcId, int index, int amount) Expects(index >= 0 && index < MTP::kDownloadSessionsCount); auto it = _requestedBytesAmount.find(dcId); if (it == _requestedBytesAmount.cend()) { - it = _requestedBytesAmount.emplace(dcId, RequestedInDc { 0 }).first; + it = _requestedBytesAmount.emplace(dcId, RequestedInDc { { 0 } }).first; } it->second[index] += amount; if (it->second[index]) {