mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Auto ctor fixes
This commit is contained in:
parent
87f3aa0335
commit
44ecb92315
12 changed files with 221 additions and 127 deletions
|
@ -3244,8 +3244,15 @@ void BfSystem::FinishCompositePartial(BfTypeDef* compositeTypeDef)
|
|||
|
||||
for (auto fieldDef : partialTypeDef->mFields)
|
||||
{
|
||||
if ((!fieldDef->mIsStatic) && (fieldDef->mFieldDeclaration != NULL) && (fieldDef->mFieldDeclaration->mInitializer != NULL))
|
||||
hasInitializers = true;
|
||||
if (!fieldDef->mIsStatic)
|
||||
{
|
||||
if (auto fieldDeclaration = BfNodeDynCast<BfFieldDeclaration>(fieldDef->mFieldDeclaration))
|
||||
if (fieldDeclaration->mInitializer != NULL)
|
||||
hasInitializers = true;
|
||||
if (auto paramDeclaration = BfNodeDynCast<BfParameterDeclaration>(fieldDef->mFieldDeclaration))
|
||||
if (paramDeclaration->mInitializer != NULL)
|
||||
hasInitializers = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasInitializers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue