mirror of https://github.com/axmolengine/axmol.git
Fix unused parameter warning
This commit is contained in:
parent
66217b7bd1
commit
bd00b2f261
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue