Refactor CC_NEW/CC_DELETE (#10810)

* replace CC_NEW/CC_DELETE with ccnew/delete
This commit is contained in:
minggo
2022-04-21 16:39:34 +08:00
committed by GitHub
parent 15affc6031
commit 444bfe31c4
245 changed files with 958 additions and 968 deletions
@@ -41,7 +41,7 @@ CCWGPUQueryPool::~CCWGPUQueryPool() {
void CCWGPUQueryPool::doInit(const QueryPoolInfo & /*info*/) {
CCWGPUDevice *device = CCWGPUDevice::getInstance();
_gpuQueryPool = CC_NEW(CCWGPUQueryPoolObject);
_gpuQueryPool = ccnew CCWGPUQueryPoolObject;
_gpuQueryPool->type = _type;
_gpuQueryPool->maxQueryObjects = _maxQueryObjects;
_gpuQueryPool->idPool.resize(_maxQueryObjects, 0U);
@@ -54,7 +54,7 @@ void CCWGPUQueryPool::doInit(const QueryPoolInfo & /*info*/) {
void CCWGPUQueryPool::doDestroy() {
if (_gpuQueryPool) {
//cmdFuncGLES3DestroyQuery(GLES3Device::getInstance(), _gpuQueryPool);
CC_DELETE(_gpuQueryPool);
delete _gpuQueryPool;
_gpuQueryPool = nullptr;
}
}