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] --- plugins/NewAwaySysMod/src/AwayOpt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewAwaySysMod/src/AwayOpt.cpp') diff --git a/plugins/NewAwaySysMod/src/AwayOpt.cpp b/plugins/NewAwaySysMod/src/AwayOpt.cpp index b0b313b999..3ded4b59c6 100644 --- a/plugins/NewAwaySysMod/src/AwayOpt.cpp +++ b/plugins/NewAwaySysMod/src/AwayOpt.cpp @@ -56,7 +56,7 @@ void MySetPos(HWND hwndParent) pt.x = CWOldPos.left; pt.y = CWOldPos.top; ScreenToClient(hwndParent, &pt); - SetWindowPos(hCurWnd, NULL, pt.x + dx, pt.y + dy, 0, 0, SWP_NOSIZE | SWP_NOZORDER); + SetWindowPos(hCurWnd, nullptr, pt.x + dx, pt.y + dy, 0, 0, SWP_NOSIZE | SWP_NOZORDER); hCurWnd = GetNextWindow(hCurWnd, GW_HWNDNEXT); } } @@ -124,7 +124,7 @@ static Dlg1Buttons[] = { static INT_PTR CALLBACK MessagesOptDlg(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { static int ChangeLock = 0; - static CMsgTree* MsgTree = NULL; + static CMsgTree* MsgTree = nullptr; switch (msg) { case WM_INITDIALOG: @@ -317,7 +317,7 @@ static INT_PTR CALLBACK MessagesOptDlg(HWND hwndDlg, UINT msg, WPARAM wParam, LP case WM_DESTROY: delete MsgTree; - MsgTree = NULL; + MsgTree = nullptr; g_MessagesOptPage.SetWnd(NULL); break; } -- cgit v1.2.3