From 98f6e97b43b40a14ff9bf59791b5edac60a7966b Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Mon, 26 Jun 2017 10:03:50 +0300 Subject: [PATCH] Review fixes --- qt/draw_widget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp index da0bd248a4..2c1bbb964a 100644 --- a/qt/draw_widget.cpp +++ b/qt/draw_widget.cpp @@ -327,8 +327,7 @@ void DrawWidget::SubmitFakeLocationPoint(m2::PointD const & pt) void DrawWidget::SubmitRoutingPoint(m2::PointD const & pt) { auto & routingManager = m_framework.GetRoutingManager(); - std::vector points = routingManager.GetRoutePoints(); - auto const pointsCount = points.size(); + auto const pointsCount = routingManager.GetRoutePoints().size(); // Check if limit of intermediate points is reached. if (m_routePointAddMode == RouteMarkType::Intermediate && !routingManager.CouldAddIntermediatePoint())