mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
Embrace nullptr over NULL and 0
This commit is contained in:
parent
ae18aa0639
commit
a5d06fde4b
16 changed files with 36 additions and 33 deletions
|
@ -77,7 +77,7 @@ bool InitWindow()
|
|||
if (!window_handle)
|
||||
return false;
|
||||
|
||||
if (SUCCEEDED(CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER,
|
||||
if (SUCCEEDED(CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_INPROC_SERVER,
|
||||
IID_PPV_ARGS(taskbar_list.GetAddressOf()))))
|
||||
{
|
||||
if (FAILED(taskbar_list->HrInit()))
|
||||
|
@ -88,8 +88,8 @@ bool InitWindow()
|
|||
|
||||
int y = PADDING_HEIGHT;
|
||||
|
||||
label_handle = CreateWindow(L"STATIC", NULL, WS_VISIBLE | WS_CHILD, 5, y, 500, 25, window_handle,
|
||||
nullptr, nullptr, 0);
|
||||
label_handle = CreateWindow(L"STATIC", nullptr, WS_VISIBLE | WS_CHILD, 5, y, 500, 25,
|
||||
window_handle, nullptr, nullptr, 0);
|
||||
|
||||
if (!label_handle)
|
||||
return false;
|
||||
|
@ -106,7 +106,7 @@ bool InitWindow()
|
|||
|
||||
y += GetWindowHeight(label_handle) + PADDING_HEIGHT;
|
||||
|
||||
total_progressbar_handle = CreateWindow(PROGRESS_CLASS, NULL, PROGRESSBAR_FLAGS, 5, y, 470, 25,
|
||||
total_progressbar_handle = CreateWindow(PROGRESS_CLASS, nullptr, PROGRESSBAR_FLAGS, 5, y, 470, 25,
|
||||
window_handle, nullptr, nullptr, 0);
|
||||
|
||||
y += GetWindowHeight(total_progressbar_handle) + PADDING_HEIGHT;
|
||||
|
@ -114,8 +114,8 @@ bool InitWindow()
|
|||
if (!total_progressbar_handle)
|
||||
return false;
|
||||
|
||||
current_progressbar_handle = CreateWindow(PROGRESS_CLASS, NULL, PROGRESSBAR_FLAGS, 5, y, 470, 25,
|
||||
window_handle, nullptr, nullptr, 0);
|
||||
current_progressbar_handle = CreateWindow(PROGRESS_CLASS, nullptr, PROGRESSBAR_FLAGS, 5, y, 470,
|
||||
25, window_handle, nullptr, nullptr, 0);
|
||||
|
||||
y += GetWindowHeight(current_progressbar_handle) + PADDING_HEIGHT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue