mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
clang: constructor initialization order
while not a major issue per-se, the sheer number of times the engine has to jump back in memory and backfill data in a given class can add up. First run of... many.,
This commit is contained in:
parent
1131ed15df
commit
fbfd3ed8ed
64 changed files with 260 additions and 255 deletions
|
|
@ -36,8 +36,8 @@ static VectorPtr< ConsoleBaseType* > gConsoleTypeTable( __FILE__, __LINE__ );
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
ConsoleBaseType::ConsoleBaseType( const S32 size, S32 *idPtr, const char *aTypeName )
|
||||
: mInspectorFieldType( NULL ),
|
||||
mTypeSize( size ),
|
||||
: mTypeSize( size ),
|
||||
mInspectorFieldType( NULL ),
|
||||
mTypeInfo( NULL )
|
||||
{
|
||||
mTypeName = StringTable->insert( aTypeName );
|
||||
|
|
|
|||
|
|
@ -43,13 +43,13 @@ EngineFunctionInfo::EngineFunctionInfo( const char* name,
|
|||
void* address,
|
||||
U32 flags )
|
||||
: SuperType( name, EngineExportKindFunction, scope, docString ),
|
||||
mBindingName( bindingName ),
|
||||
mFunctionFlags( flags ),
|
||||
mFunctionType( functionType ),
|
||||
mDefaultArgumentValues( defaultArgs ),
|
||||
mFunctionFlags( flags ),
|
||||
mBindingName( bindingName ),
|
||||
mPrototypeString( prototypeString ),
|
||||
mNextFunction( smFirstFunction ),
|
||||
mAddress( address )
|
||||
mAddress( address ),
|
||||
mNextFunction( smFirstFunction )
|
||||
{
|
||||
AssertFatal( functionType, "EngineFunctionInfo - Function cannot have void type!" );
|
||||
smFirstFunction = this;
|
||||
|
|
|
|||
|
|
@ -55,11 +55,11 @@ EngineTypeInfo::EngineTypeInfo( const char* typeName, EngineExportScope* scope,
|
|||
: SuperType( typeName, scope, docString ),
|
||||
mTypeKind( kind ),
|
||||
mInstanceSize( instanceSize ),
|
||||
mNext( smFirst ),
|
||||
mEnumTable( NULL ),
|
||||
mFieldTable( NULL ),
|
||||
mPropertyTable( NULL ),
|
||||
mSuperType( NULL )
|
||||
mSuperType( NULL ),
|
||||
mNext( smFirst )
|
||||
{
|
||||
mExportKind = EngineExportKindType;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue