dial back nullPtr usage

while it still remains a good idea to port as many NULL compares and assignments over to nullPtr as feasable, we do still need to sort out how to better support scripted empty, false, and zero assigns for things like objectIDs.

this means we'll need to both fully convert the backend of the parser to support that kind of thing, but also alter most if not all exisiting NULLs. up to and including things like SAFE_DELETE. while that's certainly feasable, given there's aproximatel 400 nullptr assigns/checks prior to this commit, and roughly 1800 of the prior, if it terminates in a script call and not an aip one direct, we'll be dialing that back until such time as fork fully fopcused on converting and resolving any lingering mismatches is completed.
This commit is contained in:
AzaezelX 2025-12-29 17:45:09 -06:00
parent e9205027f7
commit 5ffa3b81f1
84 changed files with 319 additions and 319 deletions

View file

@ -122,8 +122,8 @@ SimObject::SimObject()
mOriginalName = NULL;
mInternalName = NULL;
mInheritFrom = NULL;
nextNameObject = nullptr;
nextManagerNameObject = nullptr;
nextNameObject = NULL;
nextManagerNameObject = NULL;
nextIdObject = NULL;
mFilename = NULL;
@ -174,10 +174,10 @@ SimObject::~SimObject()
if( mCopySource )
mCopySource->unregisterReference( &mCopySource );
AssertFatal(nextNameObject == nullptr,avar(
AssertFatal(nextNameObject == NULL,avar(
"SimObject::~SimObject: Not removed from dictionary: name %s, id %i",
mObjectName, mId));
AssertFatal(nextManagerNameObject == nullptr,avar(
AssertFatal(nextManagerNameObject == NULL,avar(
"SimObject::~SimObject: Not removed from manager dictionary: name %s, id %i",
mObjectName,mId));
AssertFatal(mFlags.test(Added) == 0, "SimObject::object "
@ -1008,7 +1008,7 @@ void SimObject::assignFieldsFrom(SimObject *parent)
dMemcpy( bufferSecure, szBuffer, dStrlen( szBuffer ) );
//If we have an index worth mentioning, process it for pass-along as well to ensure we set stuff correctly
char* elementIdxBuffer = nullptr;
char* elementIdxBuffer = NULL;
if (f->elementCount > 1)
{
elementIdxBuffer = Con::getArgBuffer(256);