Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/location.hpp1
-rw-r--r--routing/routing_session.cpp8
2 files changed, 2 insertions, 7 deletions
diff --git a/platform/location.hpp b/platform/location.hpp
index ecaa3e6f79..e5943b373b 100644
--- a/platform/location.hpp
+++ b/platform/location.hpp
@@ -100,6 +100,7 @@ namespace location
: m_turn(routing::turns::TurnDirection::NoTurn),
m_exitNum(0),
m_time(0),
+ m_pedestrianTurn(routing::turns::PedestrianDirection::None),
m_pedestrianDirectionPos(0., 0.)
{
}
diff --git a/routing/routing_session.cpp b/routing/routing_session.cpp
index f6cf84ac60..bed78dd67d 100644
--- a/routing/routing_session.cpp
+++ b/routing/routing_session.cpp
@@ -219,13 +219,7 @@ void RoutingSession::GetRouteFollowingInfo(FollowingInfo & info)
else
{
// nothing should be displayed on the screen about turns if these lines are executed
- info.m_turn = turns::TurnDirection::NoTurn;
- info.m_exitNum = 0;
- info.m_time = 0;
- info.m_targetName.clear();
- info.m_lanes.clear();
- info.m_pedestrianTurn = turns::PedestrianDirection::None;
- info.m_pedestrianDirectionPos = ms::LatLon(0., 0.);
+ info = FollowingInfo();
}
}