From 4048fff1737d0fbc17104221564a40525c548c27 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Mon, 27 Jul 2015 18:14:19 +0300 Subject: [PATCH] Fixed struct ctor and case when FollowingInfo used by default --- platform/location.hpp | 1 + routing/routing_session.cpp | 8 +------- 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(); } }