mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15766 from mogemimi/fix-unused-param
Fix unused parameter warning
This commit is contained in:
commit
35730063f1
|
@ -57,6 +57,9 @@ PointArray* PointArray::create(ssize_t capacity)
|
||||||
bool PointArray::initWithCapacity(ssize_t capacity)
|
bool PointArray::initWithCapacity(ssize_t capacity)
|
||||||
{
|
{
|
||||||
_controlPoints = new (std::nothrow) vector<Vec2*>();
|
_controlPoints = new (std::nothrow) vector<Vec2*>();
|
||||||
|
if (capacity > 0) {
|
||||||
|
_controlPoints->reserve(capacity);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue