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

Remove TRACKED_NEW from tools.

This commit is contained in:
Darryl Pogue
2012-01-21 01:14:51 -08:00
committed by Adam Johnson
parent 5013a978eb
commit 12ac9a79be
115 changed files with 775 additions and 775 deletions

View File

@ -69,7 +69,7 @@ class plStealthClassDesc : public ClassDesc2
{
public:
int IsPublic() { return FALSE; }
void* Create(BOOL loading) { return TRACKED_NEW plAnimStealthNode(loading); }
void* Create(BOOL loading) { return new plAnimStealthNode(loading); }
const TCHAR* ClassName() { return GetString( IDS_STEALTH_NAME ); }
SClass_ID SuperClassID() { return HELPER_CLASS_ID; }
Class_ID ClassID() { return ANIMSTEALTH_CLASSID; }

View File

@ -60,7 +60,7 @@ class plBumpMtlClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plBumpMtl(loading); }
void* Create(BOOL loading) { return new plBumpMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_BUMP_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return BUMP_MTL_CLASS_ID; }
@ -81,7 +81,7 @@ ParamBlockDesc2 *GetBumpLayersPB();
plBumpMtl::plBumpMtl(BOOL loading) : plPassMtlBase( loading )
{
plBumpMtlDesc.MakeAutoParamBlocks( this );
fBasicPB->SetValue( kBumpBasLayer, 0, TRACKED_NEW plLayerTex );
fBasicPB->SetValue( kBumpBasLayer, 0, new plLayerTex );
// If we do this later (like, when the dialog loads) something blows up,
// somewhere in Max. It didn't in 4, it does in 7. This seems to fix it.
@ -260,7 +260,7 @@ TSTR plBumpMtl::GetSubTexmapTVName(int i)
RefTargetHandle plBumpMtl::Clone(RemapDir &remap)
{
plBumpMtl *mnew = TRACKED_NEW plBumpMtl(FALSE);
plBumpMtl *mnew = new plBumpMtl(FALSE);
plPassMtlBase::ICloneBase( mnew, remap );
return (RefTargetHandle)mnew;
}

View File

@ -59,7 +59,7 @@ class plClothingMtlClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plClothingMtl(loading); }
void* Create(BOOL loading) { return new plClothingMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_CLOTHING_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return CLOTHING_MTL_CLASS_ID; }
@ -130,10 +130,10 @@ plClothingMtl::plClothingMtl(BOOL loading) : fBasicPB(NULL)
int i;
for (i = 0; i < plClothingMtl::kMaxTiles; i++)
{
plLayerTex *tex = TRACKED_NEW plLayerTex;
plLayerTex *tex = new plLayerTex;
fBasicPB->SetValue(ParamID(kTexmap), 0, tex, i);
}
fBasicPB->SetValue(ParamID(kThumbnail), 0, TRACKED_NEW plLayerTex);
fBasicPB->SetValue(ParamID(kThumbnail), 0, new plLayerTex);
}
void plClothingMtl::Reset()
@ -352,7 +352,7 @@ IOResult plClothingMtl::Load(ILoad *iload)
RefTargetHandle plClothingMtl::Clone(RemapDir &remap)
{
plClothingMtl *mnew = TRACKED_NEW plClothingMtl(FALSE);
plClothingMtl *mnew = new plClothingMtl(FALSE);
*((MtlBase*)mnew) = *((MtlBase*)this);
mnew->ReplaceReference(kRefBasic, remap.CloneRef(fBasicPB));
@ -573,68 +573,68 @@ void plClothingMtl::InitTilesets()
plClothingElement::GetElements(fElements);
/*
plClothingTileset *tileset = TRACKED_NEW plClothingTileset();
plClothingTileset *tileset = new plClothingTileset();
tileset->SetName("shirt");
tileset->AddElement(FindElementByName("shirt-chest"));
tileset->AddElement(FindElementByName("shirt-sleeve"));
fTilesets[plClothingLayout::kSetShirt] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("face");
tileset->AddElement(FindElementByName("face"));
fTilesets[plClothingLayout::kSetFace] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("eye");
tileset->AddElement(FindElementByName("eyeball"));
fTilesets[plClothingLayout::kSetEye] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("shoe");
tileset->AddElement(FindElementByName("shoe-top"));
tileset->AddElement(FindElementByName("shoe-bottom"));
fTilesets[plClothingLayout::kSetShoe] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("pants");
tileset->AddElement(FindElementByName("pants"));
fTilesets[plClothingLayout::kSetPants] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("hand");
tileset->AddElement(FindElementByName("hand-LOD"));
tileset->AddElement(FindElementByName("hand-square"));
tileset->AddElement(FindElementByName("hand-wide"));
fTilesets[plClothingLayout::kSetHand] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("playerbook");
tileset->AddElement(FindElementByName("playerbook"));
fTilesets[plClothingLayout::kSetPlayerBook] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("backpack");
tileset->AddElement(FindElementByName("backpack"));
fTilesets[plClothingLayout::kSetBackpack] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("glasses");
tileset->AddElement(FindElementByName("glasses-front"));
tileset->AddElement(FindElementByName("glasses-side"));
fTilesets[plClothingLayout::kSetGlasses] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("KI");
tileset->AddElement(FindElementByName("KI"));
fTilesets[plClothingLayout::kSetKI] = tileset;
*/
plClothingTileset *tileset = TRACKED_NEW plClothingTileset();
plClothingTileset *tileset = new plClothingTileset();
tileset->SetName("Torso");
tileset->AddElement(FindElementByName("Chest"));
tileset->AddElement(FindElementByName("Arm"));
fTilesets[plClothingLayout::kSetShirt] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("Head");
tileset->AddElement(FindElementByName("Eye"));
tileset->AddElement(FindElementByName("Extra Hair"));
@ -642,43 +642,43 @@ void plClothingMtl::InitTilesets()
tileset->AddElement(FindElementByName("Hat"));
fTilesets[plClothingLayout::kSetFace] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("Foot");
tileset->AddElement(FindElementByName("Foot"));
fTilesets[plClothingLayout::kSetShoe] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("Legs");
tileset->AddElement(FindElementByName("Legs"));
fTilesets[plClothingLayout::kSetPants] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("Hand");
tileset->AddElement(FindElementByName("Finger"));
tileset->AddElement(FindElementByName("LOD"));
tileset->AddElement(FindElementByName("Palm"));
fTilesets[plClothingLayout::kSetHand] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("Player Book");
tileset->AddElement(FindElementByName("Player Book"));
fTilesets[plClothingLayout::kSetPlayerBook] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("Glasses");
tileset->AddElement(FindElementByName("Glasses"));
fTilesets[plClothingLayout::kSetGlasses] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("KI");
tileset->AddElement(FindElementByName("KI"));
fTilesets[plClothingLayout::kSetKI] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("(unused)");
fTilesets[plClothingLayout::kSetEye] = tileset;
tileset = TRACKED_NEW plClothingTileset();
tileset = new plClothingTileset();
tileset->SetName("(unused)");
fTilesets[plClothingLayout::kSetBackpack] = tileset;
}

View File

@ -64,7 +64,7 @@ protected:
int len = GetWindowTextLength(hCtrl)+1;
if (len > 1)
{
char *buf = TRACKED_NEW char[len];
char *buf = new char[len];
GetWindowText(hCtrl, buf, len);
// If the old value is different from the current one, update
@ -176,7 +176,7 @@ public:
layer = (plPlasmaMAXLayer *)pb->GetTexmap(ParamID(plClothingMtl::kThumbnail));
if (layer == nil)
{
layer = TRACKED_NEW plLayerTex;
layer = new plLayerTex;
pb->SetValue(ParamID(plClothingMtl::kThumbnail), 0, layer);
}
pbbm = layer->GetPBBitmap();
@ -298,7 +298,7 @@ public:
layer = (plPlasmaMAXLayer *)pb->GetTexmap(ParamID(layerIdx), 0, buttonIdx);
if (layer == nil)
{ // First time we've set a layer on this spot
layer = TRACKED_NEW plLayerTex;
layer = new plLayerTex;
pb->SetValue(ParamID(layerIdx), 0, layer, buttonIdx);
}

View File

@ -49,7 +49,7 @@ class plCompositeClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plCompositeMtl(loading); }
void* Create(BOOL loading) { return new plCompositeMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_COMP_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return COMP_MTL_CLASS_ID; }
@ -84,7 +84,7 @@ plCompositeMtl::plCompositeMtl(BOOL loading) : fPassesPB(NULL)
int i;
for (i = 0; i < NSUBMTLS; i++)
{
plPassMtl *newMtl = TRACKED_NEW plPassMtl(false);
plPassMtl *newMtl = new plPassMtl(false);
fPassesPB->SetValue(kCompPasses, 0, newMtl, i);
GetCOREInterface()->AssignNewName(fPassesPB->GetMtl(kCompPasses, 0, i));
}
@ -97,7 +97,7 @@ void plCompositeMtl::Reset()
ParamDlg* plCompositeMtl::CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp)
{
fMtlDlg = TRACKED_NEW plCompositeMtlDlg(hwMtlEdit, imp, this);
fMtlDlg = new plCompositeMtlDlg(hwMtlEdit, imp, this);
return fMtlDlg;
}
@ -360,7 +360,7 @@ IOResult plCompositeMtl::Load(ILoad *iload)
RefTargetHandle plCompositeMtl::Clone(RemapDir &remap)
{
plCompositeMtl *mnew = TRACKED_NEW plCompositeMtl(FALSE);
plCompositeMtl *mnew = new plCompositeMtl(FALSE);
*((MtlBase*)mnew) = *((MtlBase*)this);
mnew->ReplaceReference(kRefPasses, remap.CloneRef(fPassesPB));
@ -504,7 +504,7 @@ void plCompositeMtl::SetNumSubMtls(int num)
for (int i = curNum; i < num; i++)
{
plPassMtl *newMtl = TRACKED_NEW plPassMtl(false);
plPassMtl *newMtl = new plPassMtl(false);
fPassesPB->SetValue(kMultPasses, t, newMtl, i);
fPassesPB->SetValue(kMultOn, t, TRUE, i);
GetCOREInterface()->AssignNewName(fPassesPB->GetMtl(kMultPasses, t, i));

View File

@ -63,7 +63,7 @@ class plDecalMtlClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plDecalMtl(loading); }
void* Create(BOOL loading) { return new plDecalMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_DECAL_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return DECAL_MTL_CLASS_ID; }
@ -87,8 +87,8 @@ ParamBlockDesc2 *GetDecalLayersPB();
plDecalMtl::plDecalMtl(BOOL loading) : plPassMtlBase( loading )
{
plDecalMtlDesc.MakeAutoParamBlocks( this );
fLayersPB->SetValue( kDecalLayBase, 0, TRACKED_NEW plLayerTex );
fLayersPB->SetValue( kDecalLayTop, 0, TRACKED_NEW plLayerTex );
fLayersPB->SetValue( kDecalLayBase, 0, new plLayerTex );
fLayersPB->SetValue( kDecalLayTop, 0, new plLayerTex );
// If we do this later (like, when the dialog loads) something blows up,
// somewhere in Max. It didn't in 4, it does in 7. This seems to fix it.
@ -306,7 +306,7 @@ int plDecalMtl::SubTexmapOn(int i)
RefTargetHandle plDecalMtl::Clone(RemapDir &remap)
{
plDecalMtl *mnew = TRACKED_NEW plDecalMtl(FALSE);
plDecalMtl *mnew = new plDecalMtl(FALSE);
plPassMtlBase::ICloneBase( mnew, remap );
return (RefTargetHandle)mnew;
}

View File

@ -49,7 +49,7 @@ class plMultipassClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plMultipassMtl(loading); }
void* Create(BOOL loading) { return new plMultipassMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_MULTI_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return MULTIMTL_CLASS_ID; }
@ -79,7 +79,7 @@ void plMultipassMtl::Reset()
ParamDlg* plMultipassMtl::CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp)
{
fMtlDlg = TRACKED_NEW plMultipassMtlDlg(hwMtlEdit, imp, this);
fMtlDlg = new plMultipassMtlDlg(hwMtlEdit, imp, this);
return fMtlDlg;
}
@ -271,7 +271,7 @@ IOResult plMultipassMtl::Load(ILoad *iload)
RefTargetHandle plMultipassMtl::Clone(RemapDir &remap)
{
plMultipassMtl *mnew = TRACKED_NEW plMultipassMtl(FALSE);
plMultipassMtl *mnew = new plMultipassMtl(FALSE);
*((MtlBase*)mnew) = *((MtlBase*)this);
mnew->ReplaceReference(kRefPasses, remap.CloneRef(fPassesPB));
@ -378,7 +378,7 @@ void plMultipassMtl::SetNumSubMtls(int num)
for (int i = curNum; i < num; i++)
{
plPassMtl *newMtl = TRACKED_NEW plPassMtl(false);
plPassMtl *newMtl = new plPassMtl(false);
fPassesPB->SetValue(kMultPasses, t, newMtl, i);
fPassesPB->SetValue(kMultOn, t, TRUE, i);
GetCOREInterface()->AssignNewName(fPassesPB->GetMtl(kMultPasses, t, i));

View File

@ -60,7 +60,7 @@ class plParticleMtlClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plParticleMtl(loading); }
void* Create(BOOL loading) { return new plParticleMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_PARTICLE_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return PARTICLE_MTL_CLASS_ID; }
@ -102,7 +102,7 @@ plParticleMtl::plParticleMtl(BOOL loading) : fBasicPB(NULL)//, fBM(NULL), fUVGen
// if (!loading)
{
Reset();
plLayerTex *tex = TRACKED_NEW plLayerTex;
plLayerTex *tex = new plLayerTex;
//tex->GetParamBlockByID(kBlkBasic)->SetValue(kBmpUseBitmap, 0, 1);
fBasicPB->SetValue(kTexmap, 0, tex);
@ -330,7 +330,7 @@ IOResult plParticleMtl::Load(ILoad *iload)
RefTargetHandle plParticleMtl::Clone(RemapDir &remap)
{
plParticleMtl *mnew = TRACKED_NEW plParticleMtl(FALSE);
plParticleMtl *mnew = new plParticleMtl(FALSE);
*((MtlBase*)mnew) = *((MtlBase*)this);
mnew->ReplaceReference(kRefBasic, remap.CloneRef(fBasicPB));

View File

@ -64,7 +64,7 @@ class plPassMtlClassDesc : public ClassDesc2
{
public:
int IsPublic() { return TRUE; }
void* Create(BOOL loading) { return TRACKED_NEW plPassMtl(loading); }
void* Create(BOOL loading) { return new plPassMtl(loading); }
const TCHAR* ClassName() { return GetString(IDS_PASS_MTL); }
SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
Class_ID ClassID() { return PASS_MTL_CLASS_ID; }
@ -90,8 +90,8 @@ ParamBlockDesc2 *GetPassLayersPB();
plPassMtl::plPassMtl(BOOL loading) : plPassMtlBase( loading )
{
plPassMtlDesc.MakeAutoParamBlocks( this );
fLayersPB->SetValue( kPassLayBase, 0, TRACKED_NEW plLayerTex );
fLayersPB->SetValue( kPassLayTop, 0, TRACKED_NEW plLayerTex );
fLayersPB->SetValue( kPassLayBase, 0, new plLayerTex );
fLayersPB->SetValue( kPassLayTop, 0, new plLayerTex );
// If we do this later (like, when the dialog loads) something blows up,
// somewhere in Max. It didn't in 4, it does in 7. This seems to fix it.
@ -312,7 +312,7 @@ int plPassMtl::SubTexmapOn(int i)
RefTargetHandle plPassMtl::Clone(RemapDir &remap)
{
plPassMtl *mnew = TRACKED_NEW plPassMtl(FALSE);
plPassMtl *mnew = new plPassMtl(FALSE);
plPassMtlBase::ICloneBase( mnew, remap );
return (RefTargetHandle)mnew;
}

View File

@ -126,7 +126,7 @@ bool plPostLoadHandler::fLoading = false;
plPassMtlBase::plPassMtlBase( BOOL loading ) : fNTWatcher( nil ), fBasicPB(NULL), fAdvPB(NULL), fLayersPB(NULL), fAnimPB(NULL),
fLoading( loading )
{
fNTWatcher = TRACKED_NEW plNoteTrackWatcher( this );
fNTWatcher = new plNoteTrackWatcher( this );
Reset();
}