diff options
author | Yuri Gorshenin <y@maps.me> | 2017-10-26 15:12:55 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2017-10-26 15:47:02 +0300 |
commit | 12febf1a5edd713d709880e27d93779f63352944 (patch) | |
tree | 03f6c73c8e5c7c21fa793f87e60e3105fafb224a /storage/storage.cpp | |
parent | b38d8ac4629a6c43d9ce52d483d24952d14b6152 (diff) |
Review fixes.android-gr-763
Diffstat (limited to 'storage/storage.cpp')
-rw-r--r-- | storage/storage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/storage.cpp b/storage/storage.cpp index 383c8d1002..d9d0eb0a9b 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -839,7 +839,7 @@ void Storage::RegisterDownloadedFiles(TCountryId const & countryId, MapOptions o CHECK(!m_queue.empty(), ()); PushToJustDownloaded(m_queue.begin()); - PeekFromQueue(m_queue.begin()); + PopFromQueue(m_queue.begin()); SaveDownloadQueue(); m_downloader->Reset(); @@ -1172,7 +1172,7 @@ bool Storage::DeleteCountryFilesFromDownloader(TCountryId const & countryId) { auto it = find(m_queue.begin(), m_queue.end(), countryId); ASSERT(it != m_queue.end(), ()); - PeekFromQueue(it); + PopFromQueue(it); SaveDownloadQueue(); } @@ -1772,7 +1772,7 @@ void Storage::PushToJustDownloaded(TQueue::iterator justDownloadedItem) m_justDownloaded.insert(justDownloadedItem->GetCountryId()); } -void Storage::PeekFromQueue(TQueue::iterator it) +void Storage::PopFromQueue(TQueue::iterator it) { CHECK(!m_queue.empty(), ()); m_queue.erase(it); @@ -1897,7 +1897,7 @@ void Storage::OnDownloadFailed(TCountryId const & countryId) m_failedCountries.insert(countryId); auto it = find(m_queue.begin(), m_queue.end(), countryId); if (it != m_queue.end()) - PeekFromQueue(it); + PopFromQueue(it); NotifyStatusChangedForHierarchy(countryId); } } // namespace storage |