From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- protocols/MRA/src/MraSendQueue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/MRA/src/MraSendQueue.cpp') diff --git a/protocols/MRA/src/MraSendQueue.cpp b/protocols/MRA/src/MraSendQueue.cpp index f35fea2fe6..52661d4fb1 100644 --- a/protocols/MRA/src/MraSendQueue.cpp +++ b/protocols/MRA/src/MraSendQueue.cpp @@ -42,7 +42,7 @@ void MraSendQueueDestroy(HANDLE hSendQueueHandle) MRA_SEND_QUEUE_ITEM *pmrasqiSendQueueItem; { mir_cslock l(pmrasqSendQueue->cs); - while ( !ListMTItemGetFirst(pmrasqSendQueue, NULL, (LPVOID*)&pmrasqiSendQueueItem)) { + while ( !ListMTItemGetFirst(pmrasqSendQueue, nullptr, (LPVOID*)&pmrasqiSendQueueItem)) { ListMTItemDelete(pmrasqSendQueue, pmrasqiSendQueueItem); mir_free(pmrasqiSendQueueItem); } @@ -89,7 +89,7 @@ DWORD MraSendQueueFree(HANDLE hSendQueueHandle, DWORD dwCMDNum) mir_cslock l(pmrasqSendQueue->cs); ListMTIteratorMoveFirst(pmrasqSendQueue, &lmtiIterator); do { - if ( !ListMTIteratorGet(&lmtiIterator, NULL, (LPVOID*)&pmrasqiSendQueueItem)) + if ( !ListMTIteratorGet(&lmtiIterator, nullptr, (LPVOID*)&pmrasqiSendQueueItem)) if (pmrasqiSendQueueItem->dwCMDNum == dwCMDNum) { ListMTItemDelete(pmrasqSendQueue, pmrasqiSendQueueItem); mir_free(pmrasqiSendQueueItem); @@ -113,7 +113,7 @@ DWORD MraSendQueueFind(HANDLE hSendQueueHandle, DWORD dwCMDNum, DWORD *pdwFlags, mir_cslock l(pmrasqSendQueue->cs); ListMTIteratorMoveFirst(pmrasqSendQueue, &lmtiIterator); do { - if ( !ListMTIteratorGet(&lmtiIterator, NULL, (LPVOID*)&pmrasqiSendQueueItem)) + if ( !ListMTIteratorGet(&lmtiIterator, nullptr, (LPVOID*)&pmrasqiSendQueueItem)) if (pmrasqiSendQueueItem->dwCMDNum == dwCMDNum) { if (pdwFlags) (*pdwFlags) = pmrasqiSendQueueItem->dwFlags; if (phContact) (*phContact) = pmrasqiSendQueueItem->hContact; @@ -144,7 +144,7 @@ DWORD MraSendQueueFindOlderThan(HANDLE hSendQueueHandle, DWORD dwTime, DWORD *pd ListMTIteratorMoveFirst(pmrasqSendQueue, &lmtiIterator); do { MRA_SEND_QUEUE_ITEM *pmrasqiSendQueueItem; - if ( !ListMTIteratorGet(&lmtiIterator, NULL, (LPVOID*)&pmrasqiSendQueueItem)) + if ( !ListMTIteratorGet(&lmtiIterator, nullptr, (LPVOID*)&pmrasqiSendQueueItem)) if ((*((DWORDLONG*)&ftExpireTime))>(*((DWORDLONG*)&pmrasqiSendQueueItem->ftSendTime))) { if (pdwCMDNum) *pdwCMDNum = pmrasqiSendQueueItem->dwCMDNum; if (pdwFlags) *pdwFlags = pmrasqiSendQueueItem->dwFlags; -- cgit v1.2.3