diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-07-24 13:28:42 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-07-30 12:36:04 +0300 |
commit | ffaf23d30763c1167c9b36290eb62fde67c7291c (patch) | |
tree | e4d5c6f8026cbe65cf43b22c858b294470aeff15 /track_analyzing | |
parent | f771f419b43c67a79d786db0c2740effdbe072c6 (diff) |
[indexer] Convert LoaderBase methods to const, do not store FeatureType * in shared feature loader. Remove mutable from FeatureType. Remove methods which use uninitialized FeatureType * LoaderBase::m_pFt from FeatureBase. Remove FeatureBase because noone else uses it.
Diffstat (limited to 'track_analyzing')
-rw-r--r-- | track_analyzing/track_analyzer/cmd_table.cpp | 2 | ||||
-rw-r--r-- | track_analyzing/track_matcher.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/track_analyzing/track_analyzer/cmd_table.cpp b/track_analyzing/track_analyzer/cmd_table.cpp index c8cc817e08..584e3b3939 100644 --- a/track_analyzing/track_analyzer/cmd_table.cpp +++ b/track_analyzing/track_analyzer/cmd_table.cpp @@ -55,7 +55,7 @@ public: } } - uint32_t GetType(FeatureType const & feature) const + uint32_t GetType(FeatureType & feature) const { feature::TypesHolder holder(feature); for (uint32_t type : m_tags) diff --git a/track_analyzing/track_matcher.cpp b/track_analyzing/track_matcher.cpp index db23d48e6a..d8c7420679 100644 --- a/track_analyzing/track_matcher.cpp +++ b/track_analyzing/track_matcher.cpp @@ -136,7 +136,7 @@ void TrackMatcher::Step::FillCandidatesWithNearbySegments( VehicleModelInterface const & vehicleModel, NumMwmId mwmId) { dataSource.ForEachInRect( - [&](FeatureType const & ft) { + [&](FeatureType & ft) { if (!ft.GetID().IsValid()) return; |