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-08-05 13:33:32 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:23:27 +0300
commit2f07cd115f2e65133e7147a77a8385b8ddf52fea (patch)
tree2c1d57d4a1524752b5430366fbcd1fd438d6ee51 /geometry/spline.cpp
parent65bbf0c6c88386f4db7cd4cc15e14a0dec53bd1a (diff)
method FromArray removed, the same code used in constructor now
Diffstat (limited to 'geometry/spline.cpp')
-rw-r--r--geometry/spline.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/geometry/spline.cpp b/geometry/spline.cpp
index 217c6ae1e1..64ba61cfe8 100644
--- a/geometry/spline.cpp
+++ b/geometry/spline.cpp
@@ -3,14 +3,11 @@
namespace m2
{
-void Spline::FromArray(vector<PointF> const & path)
+Spline::Spline(vector<PointF> const & path)
{
- if (path.empty())
- return;
+ ASSERT(path.size() > 1, ("Wrong path size!"));
m_position.assign(path.begin(), path.end());
int cnt = m_position.size() - 1;
- if (cnt == 0)
- return;
m_direction = vector<PointF>(cnt);
m_length = vector<float>(cnt);