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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-01-22 09:06:31 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:36:30 +0300
commitd3e7f3c768d75cd31d7b03df4e9f2732e9ddac63 (patch)
treeebbe6a0e46ca2305af592e204081a461c33183e3 /map/track.cpp
parentdf256d265d532446b83e2297f49bb6abb35a1ef5 (diff)
Fixes after colleagues comments
Diffstat (limited to 'map/track.cpp')
-rw-r--r--map/track.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/map/track.cpp b/map/track.cpp
index d8e5fa6063..5dbb6e4abb 100644
--- a/map/track.cpp
+++ b/map/track.cpp
@@ -129,12 +129,7 @@ void drawArrowTriangle(graphics::Screen * dlScreen, pair<m2::PointD, m2::PointD>
m2::PointD p1, p2, p3;
m2::ArrowPoints(arrowDirection.first, arrowDirection.second, arrowWidth, arrowLength, p1, p2, p3);
- vector<m2::PointF> arrow;
- arrow.reserve(3);
- arrow.push_back(p1);
- arrow.push_back(p2);
- arrow.push_back(p3);
-
+ vector<m2::PointF> arrow = {p1, p2, p3};
dlScreen->drawConvexPolygon(&arrow[0], arrow.size(), arrowColor, arrowDepth);
}