Fix unused parameter warning

This commit is contained in:
mogemimi 2016-06-02 15:30:24 +09:00
parent 66217b7bd1
commit bd00b2f261
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;
}