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:
authorRoman Sorokin <sorok-roma@yandex.ru>2014-07-29 16:37:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:22:29 +0300
commit8171f4f76e2324c6c3c2b6045195599f63bea762 (patch)
tree53f54a72c626ff6a9e88f2983a9d6c731b8cc6d2 /geometry/spline.cpp
parent2505bbf880e1ba9c4b354beec9705e2a1811fd11 (diff)
added get-method, improved memory perfomance
Diffstat (limited to 'geometry/spline.cpp')
-rw-r--r--geometry/spline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/geometry/spline.cpp b/geometry/spline.cpp
index 5771a169c4..05f6a60860 100644
--- a/geometry/spline.cpp
+++ b/geometry/spline.cpp
@@ -5,7 +5,7 @@ namespace m2
void Spline::FromArray(vector<PointF> const & path)
{
- m_position = vector<PointF>(path.begin(), path.end() - 1);
+ m_position.assign(path.begin(), path.end() - 1);
int cnt = m_position.size();
m_direction = vector<PointF>(cnt);
m_length = vector<float>(cnt);