mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 04:39:45 +00:00
Get rid of NEW(), TRACKED_NEW, and ZERO().
This commit is contained in:
@ -90,7 +90,7 @@ bool plSDLParser::IParseStateDesc(const char* fileName, hsStream* stream, char t
|
||||
// curDesc=plSDLMgr::GetInstance()->FindDescriptor(token, plSDL::kLatestVersion);
|
||||
// if (!curDesc)
|
||||
{
|
||||
curDesc = TRACKED_NEW plStateDescriptor;
|
||||
curDesc = new plStateDescriptor;
|
||||
curDesc->SetName(token);
|
||||
|
||||
DebugMsg("SDL: DESC name=%s", token);
|
||||
@ -182,10 +182,10 @@ bool plSDLParser::IParseVarDesc(const char* fileName, hsStream* stream, char tok
|
||||
plStateDescriptor* stateDesc = plSDLMgr::GetInstance()->FindDescriptor(sdlName, plSDL::kLatestVersion);
|
||||
hsAssert(stateDesc, xtl::format("can't find nested state desc reference %s, fileName=%s",
|
||||
sdlName, fileName).c_str());
|
||||
curVar = TRACKED_NEW plSDVarDescriptor(stateDesc);
|
||||
curVar = new plSDVarDescriptor(stateDesc);
|
||||
}
|
||||
else
|
||||
curVar = TRACKED_NEW plSimpleVarDescriptor;
|
||||
curVar = new plSimpleVarDescriptor;
|
||||
|
||||
curDesc->AddVar(curVar);
|
||||
bool ok=curVar->SetType(token);
|
||||
|
Reference in New Issue
Block a user