diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-07-22 10:56:39 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-07-23 21:40:49 +0300 |
commit | 9879d1808a7da38006d9067089215dec75d7aa6c (patch) | |
tree | 2c4d7da2ad1a4d0f2a5ee717df778fff85f81831 /routing | |
parent | 5d4ee21e4a716530886f6478080a832dca877b75 (diff) |
Review fixes.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/features_road_graph.cpp | 2 | ||||
-rw-r--r-- | routing/features_road_graph.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/routing/features_road_graph.cpp b/routing/features_road_graph.cpp index e425508393..1dc3c38a25 100644 --- a/routing/features_road_graph.cpp +++ b/routing/features_road_graph.cpp @@ -268,7 +268,7 @@ void FeaturesRoadGraph::ExtractRoadInfo(FeatureID const & featureId, FeatureType ri.m_speedKMPH = speedKMPH; ft.ParseGeometry(FeatureType::BEST_GEOMETRY); - feature::TAltitudes altitudes = value.altitudeLoader->GetAltitude(featureId.m_index, ft.GetPointsCount()); + feature::TAltitudes altitudes = value.altitudeLoader->GetAltitudes(featureId.m_index, ft.GetPointsCount()); size_t const pointsCount = ft.GetPointsCount(); if (altitudes.size() != pointsCount) diff --git a/routing/features_road_graph.hpp b/routing/features_road_graph.hpp index 819f01ace0..e45495adf3 100644 --- a/routing/features_road_graph.hpp +++ b/routing/features_road_graph.hpp @@ -82,7 +82,7 @@ private: struct Value { Value() = default; - Value(MwmSet::MwmHandle && handle) + explicit Value(MwmSet::MwmHandle && handle) : mwmHandle(move(handle)) { if (!mwmHandle.IsAlive()) @@ -90,7 +90,7 @@ private: ASSERT(false, ()); return; } - altitudeLoader = make_unique<feature::AltitudeLoader>(mwmHandle.GetValue<MwmValue>()); + altitudeLoader = make_unique<feature::AltitudeLoader>(*mwmHandle.GetValue<MwmValue>()); } bool IsAlive() const |