diff options
author | vng <viktor.govako@gmail.com> | 2015-07-17 15:51:04 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:14 +0300 |
commit | 4df12718bfe698acf09dccdb383409f7b3468ef3 (patch) | |
tree | 4f1fd9cec808b643a7bd4855d1aa7c9ab0f93f74 /map/benchmark_engine.cpp | |
parent | 68403bb083aa9f66b90d9d3bdc8b14223508ab77 (diff) |
Simplified feature::DataHeader routine.
Diffstat (limited to 'map/benchmark_engine.cpp')
-rw-r--r-- | map/benchmark_engine.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/map/benchmark_engine.cpp b/map/benchmark_engine.cpp index 208cd1bb94..08ac130052 100644 --- a/map/benchmark_engine.cpp +++ b/map/benchmark_engine.cpp @@ -4,7 +4,6 @@ #include "indexer/data_header.hpp" #include "platform/settings.hpp" -#include "platform/platform.hpp" #include "coding/file_container.hpp" #include "coding/reader_streambuf.hpp" @@ -17,13 +16,9 @@ class DoGetBenchmarks set<string> m_processed; BenchmarkEngine & m_engine; - Platform & m_pl; public: - DoGetBenchmarks(BenchmarkEngine & engine) - : m_engine(engine), m_pl(GetPlatform()) - { - } + explicit DoGetBenchmarks(BenchmarkEngine & engine) : m_engine(engine) {} void operator() (vector<string> const & v) { @@ -38,8 +33,7 @@ public: { try { - feature::DataHeader header; - header.Load(FilesContainerR(m_pl.GetReader(v[0])).GetReader(HEADER_FILE_TAG)); + feature::DataHeader header(v[0]); r = header.GetBounds(); } catch (RootException const & e) |