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/AddContactPlus/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/AddContactPlus/src/main.cpp') diff --git a/plugins/AddContactPlus/src/main.cpp b/plugins/AddContactPlus/src/main.cpp index 1326ab1206..26df21c584 100644 --- a/plugins/AddContactPlus/src/main.cpp +++ b/plugins/AddContactPlus/src/main.cpp @@ -24,8 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc., CLIST_INTERFACE *pcli; HINSTANCE hInst; int hLangpack; -static HANDLE hToolBarItem = 0; -static HGENMENU hMainMenuItem = 0; +static HANDLE hToolBarItem = nullptr; +static HGENMENU hMainMenuItem = nullptr; HWND hAddDlg; static IconItem icon = { LPGEN("Add contact"), ICON_ADD, IDI_ADDCONTACT }; @@ -68,7 +68,7 @@ static INT_PTR AddContactPlusDialog(WPARAM, LPARAM) SetForegroundWindow(hAddDlg); SetFocus(hAddDlg); } - else hAddDlg = CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_ADDCONTACT), NULL, AddContactDlgProc, 0); + else hAddDlg = CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_ADDCONTACT), nullptr, AddContactDlgProc, 0); return 0; } @@ -107,7 +107,7 @@ static int OnAccListChanged(WPARAM, LPARAM) Menu_RemoveItem(hMainMenuItem); CallService(MS_TTB_REMOVEBUTTON, (WPARAM)hToolBarItem, 0); - hMainMenuItem = 0; + hMainMenuItem = nullptr; } return 0; @@ -115,7 +115,7 @@ static int OnAccListChanged(WPARAM, LPARAM) static int CreateButton(WPARAM, LPARAM) { - TTBButton tbb = { 0 }; + TTBButton tbb = {}; tbb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; tbb.pszService = MS_ADDCONTACTPLUS_SHOW; tbb.name = tbb.pszTooltipUp = LPGEN("Add contact"); -- cgit v1.2.3