diff options
author | Maxim Pimenov <m@maps.me> | 2018-06-14 12:45:54 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-06-14 15:42:53 +0300 |
commit | 84110327bd7507007a655d99215bc5046c83793d (patch) | |
tree | 19c139bb8985b80512de754d4f46798e43976a85 /platform | |
parent | 9e3002d46693fdf9d0d1579687799de3ccb21d88 (diff) |
Review fixes.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/chunks_download_strategy.cpp | 1 | ||||
-rw-r--r-- | platform/platform_android.cpp | 6 | ||||
-rw-r--r-- | platform/platform_ios.mm | 4 | ||||
-rw-r--r-- | platform/platform_tizen.cpp | 4 |
4 files changed, 6 insertions, 9 deletions
diff --git a/platform/chunks_download_strategy.cpp b/platform/chunks_download_strategy.cpp index 5ce098268e..fc38efafcd 100644 --- a/platform/chunks_download_strategy.cpp +++ b/platform/chunks_download_strategy.cpp @@ -121,7 +121,6 @@ int64_t ChunksDownloadStrategy::LoadOrInitChunks(string const & fName, int64_t f } catch (FileReader::Exception const & e) { - // Usually - file not exists or Reader::Exception. LOG(LDEBUG, (e.Msg())); } diff --git a/platform/platform_android.cpp b/platform/platform_android.cpp index 30b0c9239c..dc19c31d78 100644 --- a/platform/platform_android.cpp +++ b/platform/platform_android.cpp @@ -151,7 +151,7 @@ unique_ptr<ModelReader> Platform::GetReader(string const & file, string const & { string const path = m_writableDir + file; if (IsFileExistsByFullPath(path)) - return make_unique<FileReader>(path, true /* withExceptions */, logPageSize, logPageCount); + return make_unique<FileReader>(path, logPageSize, logPageCount); break; } @@ -159,13 +159,13 @@ unique_ptr<ModelReader> Platform::GetReader(string const & file, string const & { string const path = m_settingsDir + file; if (IsFileExistsByFullPath(path)) - return make_unique<FileReader>(path, true /* withExceptions */, logPageSize, logPageCount); + return make_unique<FileReader>(path, logPageSize, logPageCount); break; } case FULL_PATH: if (IsFileExistsByFullPath(file)) - return make_unique<FileReader>(file, true /* withExceptions */, logPageSize, logPageCount); + return make_unique<FileReader>(file, logPageSize, logPageCount); break; case RESOURCE: diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm index abc569c28c..5d30f542ac 100644 --- a/platform/platform_ios.mm +++ b/platform/platform_ios.mm @@ -115,8 +115,8 @@ bool Platform::GetFileSizeByName(string const & fileName, uint64_t & size) const unique_ptr<ModelReader> Platform::GetReader(string const & file, string const & searchScope) const { - return make_unique<FileReader>(ReadPathForFile(file, searchScope), true /* withExceptions */, - READER_CHUNK_LOG_SIZE, READER_CHUNK_LOG_COUNT); + return make_unique<FileReader>(ReadPathForFile(file, searchScope), READER_CHUNK_LOG_SIZE, + READER_CHUNK_LOG_COUNT); } int Platform::VideoMemoryLimit() const { return 8 * 1024 * 1024; } diff --git a/platform/platform_tizen.cpp b/platform/platform_tizen.cpp index 6e16c4e75b..df0d58eab9 100644 --- a/platform/platform_tizen.cpp +++ b/platform/platform_tizen.cpp @@ -73,9 +73,7 @@ void Platform::RunOnGuiThread(TFunctor const & fn) ModelReader * Platform::GetReader(string const & file, string const & searchScope) const { - return new FileReader(ReadPathForFile(file, searchScope), - true /* withExceptions */ - READER_CHUNK_LOG_SIZE, + return new FileReader(ReadPathForFile(file, searchScope), READER_CHUNK_LOG_SIZE, READER_CHUNK_LOG_COUNT); } |