diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-07 23:14:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-07 23:14:08 +0300 |
commit | 4dde6e6a9b6176050f31df13e91d248b5d7c62b2 (patch) | |
tree | f449a243e576cec7968efcca842a7c4db8b6bd85 /plugins/Scriver/src/chat/log.cpp | |
parent | 0bc0ec3803c1d95798e551ec7c1d431d2ac98075 (diff) |
code cleaning
Diffstat (limited to 'plugins/Scriver/src/chat/log.cpp')
-rw-r--r-- | plugins/Scriver/src/chat/log.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Scriver/src/chat/log.cpp b/plugins/Scriver/src/chat/log.cpp index 1f0cf0f7f4..c3c716981d 100644 --- a/plugins/Scriver/src/chat/log.cpp +++ b/plugins/Scriver/src/chat/log.cpp @@ -30,7 +30,7 @@ static DWORD CALLBACK Log_StreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG LOGSTREAMDATA *lstrdat = (LOGSTREAMDATA*)dwCookie;
if (lstrdat) {
// create the RTF
- if (lstrdat->buffer == NULL) {
+ if (lstrdat->buffer == nullptr) {
lstrdat->bufferOffset = 0;
lstrdat->buffer = pci->Log_CreateRTF(lstrdat);
lstrdat->bufferLen = (int)mir_strlen(lstrdat->buffer);
@@ -44,7 +44,7 @@ static DWORD CALLBACK Log_StreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG // free stuff if the streaming operation is complete
if (lstrdat->bufferOffset == lstrdat->bufferLen) {
mir_free(lstrdat->buffer);
- lstrdat->buffer = NULL;
+ lstrdat->buffer = nullptr;
}
}
@@ -124,7 +124,7 @@ void Log_StreamInEvent(HWND hwndDlg, LOGINFO* lin, SESSION_INFO *si, BOOL bRedra SMADD_RICHEDIT3 sm = { sizeof(sm) };
sm.hwndRichEditControl = hwndRich;
sm.Protocolname = si->pszModule;
- sm.rangeToReplace = bRedraw ? NULL : &newsel;
+ sm.rangeToReplace = bRedraw ? nullptr : &newsel;
sm.flags = 0;
sm.disableRedraw = TRUE;
sm.hContact = si->hContact;
@@ -141,7 +141,7 @@ void Log_StreamInEvent(HWND hwndDlg, LOGINFO* lin, SESSION_INFO *si, BOOL bRedra if (oldsel.cpMax != oldsel.cpMin) {
SendMessage(hwndRich, EM_EXSETSEL, 0, (LPARAM)&oldsel);
SendMessage(hwndRich, WM_SETREDRAW, TRUE, 0);
- InvalidateRect(hwndRich, NULL, TRUE);
+ InvalidateRect(hwndRich, nullptr, TRUE);
}
// need to invalidate the window
@@ -149,6 +149,6 @@ void Log_StreamInEvent(HWND hwndDlg, LOGINFO* lin, SESSION_INFO *si, BOOL bRedra sel.cpMin = sel.cpMax = GetRichTextLength(hwndRich, CP_ACP, FALSE);
SendMessage(hwndRich, EM_EXSETSEL, 0, (LPARAM)&sel);
SendMessage(hwndRich, WM_SETREDRAW, TRUE, 0);
- InvalidateRect(hwndRich, NULL, TRUE);
+ InvalidateRect(hwndRich, nullptr, TRUE);
}
}
|