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/WhenWasIt/src/services.cpp | |
| parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) | |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/WhenWasIt/src/services.cpp')
| -rw-r--r-- | plugins/WhenWasIt/src/services.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/plugins/WhenWasIt/src/services.cpp b/plugins/WhenWasIt/src/services.cpp index 9db7956f2a..399cf5aeb1 100644 --- a/plugins/WhenWasIt/src/services.cpp +++ b/plugins/WhenWasIt/src/services.cpp @@ -139,7 +139,7 @@ INT_PTR CheckBirthdaysService(WPARAM, LPARAM lParam)  INT_PTR ShowListService(WPARAM, LPARAM)
  {
  	if (!hBirthdaysDlg)
 -		hBirthdaysDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_BIRTHDAYS), NULL, DlgProcBirthdays);
 +		hBirthdaysDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_BIRTHDAYS), nullptr, DlgProcBirthdays);
  	ShowWindow(hBirthdaysDlg, SW_SHOW);
  	return 0;
 @@ -149,7 +149,7 @@ INT_PTR AddBirthdayService(WPARAM hContact, LPARAM)  {
  	HWND hWnd = WindowList_Find(hAddBirthdayWndsList, hContact);
  	if (!hWnd)
 -		hWnd = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_ADD_BIRTHDAY), NULL, DlgProcAddBirthday, hContact);
 +		hWnd = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_ADD_BIRTHDAY), nullptr, DlgProcAddBirthday, hContact);
  	return ShowWindow(hWnd, SW_SHOW);
  }
 @@ -184,7 +184,7 @@ void __cdecl RefreshUserDetailsWorkerThread(void*)  INT_PTR RefreshUserDetailsService(WPARAM, LPARAM)
  {
 -	mir_forkthread(RefreshUserDetailsWorkerThread, 0);
 +	mir_forkthread(RefreshUserDetailsWorkerThread, nullptr);
  	return 0;
  }
 @@ -245,7 +245,7 @@ int DoImport(wchar_t *fileName)  {
  	FILE *fin = _wfopen(fileName, L"rt");
  	if (!fin) {
 -		MessageBox(0, TranslateT("Could not open file to import birthdays"), TranslateT("Error"), MB_OK | MB_ICONERROR);
 +		MessageBox(nullptr, TranslateT("Could not open file to import birthdays"), TranslateT("Error"), MB_OK | MB_ICONERROR);
  		return 1;
  	}
 @@ -292,7 +292,7 @@ int DoExport(wchar_t *fileName)  {
  	FILE *fout = _wfopen(fileName, L"wt");
  	if (!fout) {
 -		MessageBox(0, TranslateT("Could not open file to export birthdays"), TranslateT("Error"), MB_OK | MB_ICONERROR);
 +		MessageBox(nullptr, TranslateT("Could not open file to export birthdays"), TranslateT("Error"), MB_OK | MB_ICONERROR);
  		return 1;
  	}
  	fwprintf(fout, L"%c%s", COMMENT_CHAR, TranslateT("Please do not edit this file by hand. Use the export function of WhenWasIt plugin.\n"));
 | 
