From c1c513bc216e8e53743a7e95e9b813d587c4b4a6 Mon Sep 17 00:00:00 2001 From: Olga Khlopkova Date: Thu, 2 Jul 2020 17:40:53 +0300 Subject: [PATCH] [map] remove using namespace routing from transit reader. --- map/transit/transit_reader.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/map/transit/transit_reader.cpp b/map/transit/transit_reader.cpp index 9204c7b0de..db57938050 100644 --- a/map/transit/transit_reader.cpp +++ b/map/transit/transit_reader.cpp @@ -19,7 +19,6 @@ #include #include -using namespace routing; using namespace std; using namespace std::chrono; @@ -80,19 +79,19 @@ void ReadTransitTask::Do() auto reader = mwmValue.m_cont.GetReader(TRANSIT_FILE_TAG); CHECK(reader.GetPtr() != nullptr, ()); - transit::GraphData graphData; + routing::transit::GraphData graphData; graphData.DeserializeForRendering(*reader.GetPtr()); FillItemsByIdMap(graphData.GetStops(), m_transitInfo->m_stops); for (auto const & stop : m_transitInfo->m_stops) { - if (stop.second.GetFeatureId() != transit::kInvalidFeatureId) + if (stop.second.GetFeatureId() != routing::transit::kInvalidFeatureId) { auto const featureId = FeatureID(m_mwmId, stop.second.GetFeatureId()); m_transitInfo->m_features[featureId] = {}; } - if (m_loadSubset && (stop.second.GetTransferId() != transit::kInvalidTransferId)) + if (m_loadSubset && (stop.second.GetTransferId() != routing::transit::kInvalidTransferId)) m_transitInfo->m_transfers[stop.second.GetTransferId()] = {}; } FillItemsByIdMap(graphData.GetTransfers(), m_transitInfo->m_transfers);