mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-22 05:09:13 +00:00
Get rid of NEW(), TRACKED_NEW, and ZERO().
This commit is contained in:
@ -189,7 +189,7 @@ void NetLogRegisterEvents (const NetLogEvent events[], unsigned count) {
|
||||
HASHTABLEDECL(NetLogEventHash, EventHash, link) tempHashTable;
|
||||
|
||||
for(unsigned i = 0; i < count; ++i) {
|
||||
hash = NEW(NetLogEventHash)(events[i].logEventType, events[i].srvType, &events[i]);
|
||||
hash = new NetLogEventHash(events[i].logEventType, events[i].srvType, &events[i]);
|
||||
tempHashTable.Add(hash);
|
||||
}
|
||||
s_critsect.Enter();
|
||||
|
@ -156,7 +156,7 @@ static void NetLogConnDisconnect () {
|
||||
|
||||
//============================================================================
|
||||
static void AddEventNode (Srv2Log_LogMsg *msg) {
|
||||
LogConnEventNode *node = NEW(LogConnEventNode)(msg, TimeGetMs() + kIssueSaveMs);
|
||||
LogConnEventNode *node = new LogConnEventNode(msg, TimeGetMs() + kIssueSaveMs);
|
||||
s_critsect.Enter();
|
||||
{
|
||||
s_eventQueue.Link(node);
|
||||
|
Reference in New Issue
Block a user