diff options
author | vng <viktor.govako@gmail.com> | 2011-06-30 10:52:22 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:20:14 +0300 |
commit | 233683d1670e89076c82401e2693315046c7244e (patch) | |
tree | 3b0a9b71d53e853e663da18c362f6ba267b1bc85 /indexer/feature.cpp | |
parent | f0587a9105b5519903f4f2c3dada1ee3572e7ce1 (diff) |
[Refactoring] Use Reader interface everywhere, when possible. Platform class now is a Reader factory.
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r-- | indexer/feature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp index f2c7121fcc..ea35b90d38 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -829,7 +829,7 @@ uint32_t FeatureType::ParseGeometry(int scale) const int const ind = GetScaleIndex(scale, m_ptsOffsets); if (ind != -1) { - ReaderSource<FileReader> src( + ReaderSource<FilesContainerR::ReaderT> src( m_cont->GetReader(feature::GetTagForIndex(GEOMETRY_FILE_TAG, ind))); src.Skip(m_ptsOffsets[ind]); serial::LoadOuterPath(src, m_CodingParams, m_Points); @@ -881,7 +881,7 @@ uint32_t FeatureType::ParseTriangles(int scale) const uint32_t const ind = GetScaleIndex(scale, m_trgOffsets); if (ind != -1) { - ReaderSource<FileReader> src( + ReaderSource<FilesContainerR::ReaderT> src( m_cont->GetReader(feature::GetTagForIndex(TRIANGLE_FILE_TAG, ind))); src.Skip(m_trgOffsets[ind]); serial::LoadOuterTriangles(src, m_CodingParams, m_Triangles); |