Merge pull request #15766 from mogemimi/fix-unused-param

Fix unused parameter warning
This commit is contained in:
minggo 2016-06-02 17:06:02 +08:00
commit 35730063f1
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ PointArray* PointArray::create(ssize_t capacity)
bool PointArray::initWithCapacity(ssize_t capacity)
{
_controlPoints = new (std::nothrow) vector<Vec2*>();
if (capacity > 0) {
_controlPoints->reserve(capacity);
}
return true;
}