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/infobar.cpp | |
parent | 0bc0ec3803c1d95798e551ec7c1d431d2ac98075 (diff) |
code cleaning
Diffstat (limited to 'plugins/Scriver/src/infobar.cpp')
-rw-r--r-- | plugins/Scriver/src/infobar.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Scriver/src/infobar.cpp b/plugins/Scriver/src/infobar.cpp index 87729d895b..f9f8c4e226 100644 --- a/plugins/Scriver/src/infobar.cpp +++ b/plugins/Scriver/src/infobar.cpp @@ -72,7 +72,7 @@ static HICON GetExtraStatusIcon(InfobarWindowData* idat) if (bXStatus > 0)
return (HICON)CallProtoService(idat->mwd->m_szProto, PS_GETCUSTOMSTATUSICON, bXStatus, 0);
- return NULL;
+ return nullptr;
}
void RefreshInfobar(InfobarWindowData* idat)
@@ -97,10 +97,10 @@ void RefreshInfobar(InfobarWindowData* idat) if (hIcon)
DestroyIcon(hIcon);
- SetToolTipText(hwnd, idat->hXStatusTip, szText, NULL);
+ SetToolTipText(hwnd, idat->hXStatusTip, szText, nullptr);
SendMessage(hwnd, WM_SIZE, 0, 0);
- InvalidateRect(hwnd, NULL, TRUE);
- RedrawWindow(GetDlgItem(hwnd, IDC_AVATAR), NULL, NULL, RDW_INVALIDATE);
+ InvalidateRect(hwnd, nullptr, TRUE);
+ RedrawWindow(GetDlgItem(hwnd, IDC_AVATAR), nullptr, nullptr, RDW_INVALIDATE);
}
static INT_PTR CALLBACK InfobarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
@@ -117,7 +117,7 @@ static INT_PTR CALLBACK InfobarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA idat->hWnd = hwnd;
{
RECT rect = { 0 };
- idat->hXStatusTip = CreateToolTip(hwnd, NULL, NULL, &rect);
+ idat->hXStatusTip = CreateToolTip(hwnd, nullptr, nullptr, &rect);
SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)idat);
SendDlgItemMessage(hwnd, IDC_INFOBAR_NAME, EM_AUTOURLDETECT, TRUE, 0);
SendDlgItemMessage(hwnd, IDC_INFOBAR_NAME, EM_SETEVENTMASK, 0, ENM_MOUSEEVENTS | ENM_LINK | ENM_KEYEVENTS);
@@ -258,15 +258,15 @@ static INT_PTR CALLBACK InfobarWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA POINT pt;
GetCursorPos(&pt);
- TrackPopupMenu(hMenu, 0, pt.x, pt.y, 0, GetParent(hwnd), NULL);
+ TrackPopupMenu(hMenu, 0, pt.x, pt.y, 0, GetParent(hwnd), nullptr);
DestroyMenu(hMenu);
}
break;
case WM_DESTROY:
- if (idat->hXStatusTip != NULL) {
+ if (idat->hXStatusTip != nullptr) {
DestroyWindow(idat->hXStatusTip);
- idat->hXStatusTip = NULL;
+ idat->hXStatusTip = nullptr;
}
mir_free(idat);
}
|