diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-08 15:46:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-08 15:46:18 +0300 |
commit | 7b19b6715a75c52e0285ee2031a8fa2ddace1da7 (patch) | |
tree | aa265af852036090d92a1d7036ea42ce805b8296 /plugins/TabSRMM/src/chat_manager.cpp | |
parent | 5d2730f1fb7c3d79ce55292f1d5d7bb5dc33cb44 (diff) |
code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/chat_manager.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_manager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/chat_manager.cpp b/plugins/TabSRMM/src/chat_manager.cpp index 3a93a8a444..cff97336cf 100644 --- a/plugins/TabSRMM/src/chat_manager.cpp +++ b/plugins/TabSRMM/src/chat_manager.cpp @@ -28,7 +28,7 @@ static int sttCompareNicknames(const wchar_t *s1, const wchar_t *s2)
{
- if (s2 == NULL)
+ if (s2 == nullptr)
return 1;
// skip rubbish
@@ -89,7 +89,7 @@ SESSION_INFO* SM_FindSessionByHWND(HWND hWnd) if (si->hWnd == hWnd)
return si;
- return NULL;
+ return nullptr;
}
SESSION_INFO* SM_FindSessionByHCONTACT(MCONTACT h)
@@ -98,19 +98,19 @@ SESSION_INFO* SM_FindSessionByHCONTACT(MCONTACT h) if (si->hContact == h)
return si;
- return NULL;
+ return nullptr;
}
SESSION_INFO* SM_FindSessionAutoComplete(const char* pszModule, SESSION_INFO* currSession, SESSION_INFO* prevSession, const wchar_t* pszOriginal, const wchar_t* pszCurrent)
{
- if (prevSession == NULL && my_strstri(currSession->ptszName, pszOriginal) == currSession->ptszName)
+ if (prevSession == nullptr && my_strstri(currSession->ptszName, pszOriginal) == currSession->ptszName)
return currSession;
- wchar_t *pszName = NULL;
+ wchar_t *pszName = nullptr;
if (currSession == prevSession)
pszCurrent = pszOriginal;
- SESSION_INFO *pResult = NULL;
+ SESSION_INFO *pResult = nullptr;
for (SESSION_INFO *si = pci->wndList; si; si = si->next)
if (si != currSession && !mir_strcmpi(pszModule, si->pszModule))
if (my_strstri(si->ptszName, pszOriginal) == si->ptszName)
|