From aa8f4373e0c9614b7d64a5760c0fa071b1c1edc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Jul 2012 11:11:20 +0000 Subject: - MZeroedObject used instead of the operator new() inlining - SAFE_DELETE of local objects removed from ICQ git-svn-id: http://svn.miranda-ng.org/main/trunk@1092 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/icq_rates.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/IcqOscarJ/icq_rates.cpp') diff --git a/protocols/IcqOscarJ/icq_rates.cpp b/protocols/IcqOscarJ/icq_rates.cpp index 09a1b27396..e7513ec148 100644 --- a/protocols/IcqOscarJ/icq_rates.cpp +++ b/protocols/IcqOscarJ/icq_rates.cpp @@ -334,7 +334,7 @@ rates_queue::rates_queue(CIcqProto *ppro, const char *szDescr, int nLimitLevel, rates_queue::~rates_queue() { cleanup(); - SAFE_DELETE(&listsMutex); + delete listsMutex; } @@ -377,7 +377,7 @@ void rates_queue::cleanup() ppro->NetLog_Server("Rates: Purging %d %s(s).", pendingListSize, szDescr); for (int i=0; i < pendingListSize; i++) - SAFE_DELETE((void_struct**)&pendingList[i]); + delete pendingList[i]; SAFE_FREE((void**)&pendingList); pendingListSize = 0; } @@ -439,7 +439,7 @@ void rates_queue::processQueue() if (nDelay < 10) nDelay = 10; initDelay(nDelay, &rates_queue::processQueue); } - SAFE_DELETE((void_struct**)&item); + delete item; } @@ -461,7 +461,7 @@ void rates_queue::putItem(rates_queue_item *pItem, int nMinDelay) { if (duplicates == -1) { // discard existing, append new item - SAFE_DELETE((void_struct**)&pendingList[i]); + delete pendingList[i]; memcpy(&pendingList[i], &pendingList[i + 1], (pendingListSize - i - 1) * sizeof(rates_queue_item*)); bFound = TRUE; } -- cgit v1.2.3