diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/NewAwaySysMod/src/AwayOpt.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/NewAwaySysMod/src/AwayOpt.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/src/AwayOpt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|