1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Get rid of NEW(), TRACKED_NEW, and ZERO().

This commit is contained in:
Darryl Pogue
2012-01-21 01:09:48 -08:00
committed by Adam Johnson
parent 30430d3024
commit 5013a978eb
423 changed files with 2500 additions and 2503 deletions

View File

@ -86,7 +86,7 @@ public:
virtual uint16_t ClassIndex() { return CLASS_INDEX_SCOPED(plClassName); } \
virtual const char* ClassName() const { return #plClassName; } \
\
virtual plCreatable* Create() const { return TRACKED_NEW plClassName; } \
virtual plCreatable* Create() const { return new plClassName; } \
\
}; \
static plClassName##__Creator static##plClassName##__Creator; \
@ -145,7 +145,7 @@ public:
virtual uint16_t ClassIndex() { return EXTERN_CLASS_INDEX_SCOPED(plClassName); } \
virtual const char* ClassName() const { return #plClassName; } \
\
virtual plCreatable* Create() const { return TRACKED_NEW plClassName; } \
virtual plCreatable* Create() const { return new plClassName; } \
\
}; \
static plClassName##__Creator static##plClassName##__Creator; \

View File

@ -68,7 +68,7 @@ hsBool plFactory::ICreateTheFactory()
if( theFactory )
return true;
theFactory = TRACKED_NEW plFactory;
theFactory = new plFactory;
return theFactory != nil;
}