summaryrefslogtreecommitdiff
path: root/plugins/AddContactPlus/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AddContactPlus/src/main.cpp')
-rw-r--r--plugins/AddContactPlus/src/main.cpp10
1 files changed, 5 insertions, 5 deletions
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");