diff options
author | Roman Sorokin <sorok-roma@yandex.ru> | 2014-07-29 16:37:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:22:29 +0300 |
commit | 8171f4f76e2324c6c3c2b6045195599f63bea762 (patch) | |
tree | 53f54a72c626ff6a9e88f2983a9d6c731b8cc6d2 /geometry/spline.cpp | |
parent | 2505bbf880e1ba9c4b354beec9705e2a1811fd11 (diff) |
added get-method, improved memory perfomance
Diffstat (limited to 'geometry/spline.cpp')
-rw-r--r-- | geometry/spline.cpp | 2 |
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); |