1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +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

@ -80,7 +80,7 @@ public:
// setters
void SetData(char *d)
{
plNetCommonMessageData* n = d ? TRACKED_NEW plNetCommonMessageData(d) : nil;
plNetCommonMessageData* n = d ? new plNetCommonMessageData(d) : nil;
hsRefCnt_SafeAssign(fMsgData, n);
hsRefCnt_SafeUnRef(n);
}

View File

@ -765,7 +765,7 @@ void plNetMsgSDLState::ReadVersion(hsStream* s, hsResMgr* mgr)
{
uint32_t len;
s->LogReadLE(&len,"SDLState StreamLen");
uint8_t* buf = TRACKED_NEW uint8_t[len];
uint8_t* buf = new uint8_t[len];
s->LogRead(len, buf,"SDLState StreamData");
StreamInfo()->SetStreamLen(len);

View File

@ -239,7 +239,7 @@ void plNetMsgStreamHelper::IAllocStream(uint32_t len)
fStreamBuf=nil;
fStreamLen=len;
if (len)
fStreamBuf = TRACKED_NEW uint8_t[len];
fStreamBuf = new uint8_t[len];
}
void plNetMsgStreamHelper::CopyStream(hsStream* ssStream)
@ -435,7 +435,7 @@ int plNetMsgObjectListHelper::Peek(hsStream* stream, const uint32_t peekOptions)
int i;
for( i=0 ;i<num ;i++ )
{
fObjects.push_back(TRACKED_NEW plNetMsgObjectHelper);
fObjects.push_back(new plNetMsgObjectHelper);
GetObject(i)->Peek(stream, peekOptions);
} // for
stream->LogSubStreamEnd();
@ -489,7 +489,7 @@ int plNetMsgMemberListHelper::Peek(hsStream* stream, const uint32_t peekOptions)
int i;
for(i=0;i<numMembers;i++)
{
plNetMsgMemberInfoHelper* addr=TRACKED_NEW plNetMsgMemberInfoHelper;
plNetMsgMemberInfoHelper* addr=new plNetMsgMemberInfoHelper;
addr->Peek(stream, peekOptions);
AddMember(addr);
}

View File

@ -241,7 +241,7 @@ public:
void Reset();
int GetNumObjects() const { return fObjects.size(); }
plNetMsgObjectHelper* GetObject(int i) { return fObjects[i]; }
void AddObject(plKey key) { fObjects.push_back(TRACKED_NEW plNetMsgObjectHelper(key)); }
void AddObject(plKey key) { fObjects.push_back(new plNetMsgObjectHelper(key)); }
};
//