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

@ -158,7 +158,7 @@ static void LookupFindAndProcess (HANDLE cancelHandle, unsigned error) {
static unsigned THREADCALL LookupThreadProc (AsyncThread * thread) {
static const char WINDOW_CLASS[] = "AsyncLookupWnd";
WNDCLASS wc;
ZERO(wc);
memset(&wc, 0, sizeof(wc));
wc.lpfnWndProc = DefWindowProc;
wc.hInstance = GetModuleHandle(0);
wc.lpszClassName = WINDOW_CLASS;
@ -291,7 +291,7 @@ void AsyncAddressLookupName (
}
// Initialize lookup
Lookup * lookup = NEW(Lookup);
Lookup * lookup = new Lookup;
lookup->lookupProc = lookupProc;
lookup->port = port;
lookup->param = param;
@ -336,7 +336,7 @@ void AsyncAddressLookupAddr (
PerfAddCounter(kAsyncPerfNameLookupAttemptsTotal, 1);
// Initialize lookup
Lookup * lookup = NEW(Lookup);
Lookup * lookup = new Lookup;
lookup->lookupProc = lookupProc;
lookup->port = 1;
lookup->param = param;

View File

@ -234,7 +234,7 @@ void AsyncThreadTaskSetThreadCount (unsigned threads) {
//===========================================================================
AsyncThreadTaskList * AsyncThreadTaskListCreate () {
ASSERT(s_taskPort);
AsyncThreadTaskList * taskList = NEW(AsyncThreadTaskList);
AsyncThreadTaskList * taskList = new AsyncThreadTaskList;
taskList->IncRef("TaskList");
return taskList;
}
@ -266,7 +266,7 @@ void AsyncThreadTaskAdd (
ASSERT(priority == kThreadTaskPriorityNormal);
// Allocate a new task record
ThreadTask * task = NEW(ThreadTask);
ThreadTask * task = new ThreadTask;
task->taskList = taskList;
task->callback = callback;
task->param = param;