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

@ -101,7 +101,7 @@ void pfGameScoreMgr::AddCachedScore(pfGameScore * score)
GameScoreLink * scoreLink = fScores.Find(score->scoreId);
if (scoreLink == nil)
{
GameScoreLink * link = TRACKED_NEW GameScoreLink(score);
GameScoreLink * link = new GameScoreLink(score);
fScores.Add(link);
}
else
@ -240,11 +240,11 @@ static void GetScoresCallback(
op->result = result;
if (IS_NET_SUCCESS(result)) {
*(op->scores) = TRACKED_NEW pfGameScore*[scoreCount];
*(op->scores) = new pfGameScore*[scoreCount];
*(op->scoreCount) = scoreCount;
for (int i = 0; i < scoreCount; ++i) {
pfGameScore* score = TRACKED_NEW pfGameScore();
pfGameScore* score = new pfGameScore();
score->IncRef();
char tempGameName[kMaxGameScoreNameLength];
@ -414,11 +414,11 @@ static void GetRanksCallback(
op->result = result;
if (IS_NET_SUCCESS(result)) {
*(op->ranks) = TRACKED_NEW NetGameRank*[rankCount];
*(op->ranks) = new NetGameRank*[rankCount];
*(op->rankCount) = rankCount;
for (int i = 0; i < rankCount; ++i) {
NetGameRank * rank = TRACKED_NEW NetGameRank;
NetGameRank * rank = new NetGameRank;
rank->rank = ranks[i].rank;
rank->score = ranks[i].score;