From ebbdd625ceecf12f4f9386aec821795365b13104 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Thu, 9 Nov 2017 15:42:23 +0300 Subject: Review fixes --- storage/diff_scheme/diff_manager.cpp | 2 +- storage/downloading_policy.cpp | 2 +- storage/storage.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'storage') diff --git a/storage/diff_scheme/diff_manager.cpp b/storage/diff_scheme/diff_manager.cpp index d6dfcb63df..159acd1e10 100644 --- a/storage/diff_scheme/diff_manager.cpp +++ b/storage/diff_scheme/diff_manager.cpp @@ -41,7 +41,7 @@ void Manager::Load(LocalMapsInfo && info) auto & observers = m_observers; auto status = m_status; - GetPlatform().RunOnGuiThread([observers, status]() mutable { + GetPlatform().RunTask(Platform::Thread::Gui, [observers, status]() mutable { observers.ForEach(&Observer::OnDiffStatusReceived, status); }); }); diff --git a/storage/downloading_policy.cpp b/storage/downloading_policy.cpp index 758f152af8..533e56490a 100644 --- a/storage/downloading_policy.cpp +++ b/storage/downloading_policy.cpp @@ -32,7 +32,7 @@ void StorageDownloadingPolicy::ScheduleRetry(storage::TCountriesSet const & fail --m_autoRetryCounter; func(failedCountries); }; - m_autoRetryWorker.RestartWith([action]{ GetPlatform().RunOnGuiThread(action); }); + m_autoRetryWorker.RestartWith([action]{ GetPlatform().RunTask(Platform::Thread::Gui, action); }); } else { diff --git a/storage/storage.cpp b/storage/storage.cpp index 585812a74b..2455e2d38f 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -1422,7 +1422,7 @@ void Storage::ApplyDiff(TCountryId const & countryId, function