1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Remove unnecessary delete statements

If a value is null, the C++ delete statement will do nothing, so there is bo need to explicitly check if the value is null.
This commit is contained in:
JamesOrson 2020-07-10 15:43:39 -07:00 committed by James Orson
parent 7f726ef9ba
commit e76becf4c6
12 changed files with 22 additions and 41 deletions

View file

@ -1878,8 +1878,7 @@ BfGenericTypeInfo::~BfGenericTypeInfo()
{
for (auto genericParamInstance : mGenericParams)
genericParamInstance->Release();
if (mGenericExtensionInfo != NULL)
delete mGenericExtensionInfo;
delete mGenericExtensionInfo;
}
BfGenericTypeInfo::GenericParamsVector* BfTypeInstance::GetGenericParamsVector(BfTypeDef* declaringTypeDef)