Skip to content

Commit a96f2b1

Browse files
committed
nullptr
1 parent de5209c commit a96f2b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

appCpp/src/Main.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ int main()
177177
windowClass.lpfnWndProc = wndProc;
178178
windowClass.cbClsExtra = 0;
179179
windowClass.cbWndExtra = 0;
180-
windowClass.hInstance = NULL;
181-
windowClass.hIcon = NULL;
182-
windowClass.hCursor = NULL;
180+
windowClass.hInstance = nullptr;
181+
windowClass.hIcon = nullptr;
182+
windowClass.hCursor = nullptr;
183183
windowClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
184-
windowClass.lpszMenuName = NULL;
184+
windowClass.lpszMenuName = nullptr;
185185
windowClass.lpszClassName = className.c_str();
186186

187187
RegisterClassA(&windowClass);
@@ -195,10 +195,10 @@ int main()
195195
int windowX = max(0, (screenWidth - windowWidth) / 2);
196196
int windowY = max(0, (screenHeight - windowHeight) / 2);
197197

198-
CreateWindowExA(0, className.c_str(), windowTitle.c_str(), WS_VISIBLE | WS_CAPTION | WS_SYSMENU, windowX, windowY, windowWidth, windowHeight, NULL, NULL, NULL, NULL);
198+
CreateWindowExA(0, className.c_str(), windowTitle.c_str(), WS_VISIBLE | WS_CAPTION | WS_SYSMENU, windowX, windowY, windowWidth, windowHeight, nullptr, nullptr, nullptr, nullptr);
199199

200200
MSG msg;
201-
while (GetMessageA(&msg, NULL, 0u, 0u) != 0)
201+
while (GetMessageA(&msg, nullptr, 0u, 0u) != 0)
202202
{
203203
TranslateMessage(&msg);
204204
DispatchMessageA(&msg);
@@ -389,9 +389,9 @@ static HWND registerField(HWND window)
389389
239,
390390
48,
391391
window,
392-
NULL,
393-
NULL,
394-
NULL);
392+
nullptr,
393+
nullptr,
394+
nullptr);
395395
}
396396

397397
static void registerButton(HWND window, int id, string text, int gridX, int gridY)
@@ -410,6 +410,6 @@ static void registerButton(HWND window, int id, string text, int gridX, int grid
410410
buttonHeight,
411411
window,
412412
reinterpret_cast<HMENU>(id),
413-
NULL,
414-
NULL);
413+
nullptr,
414+
nullptr);
415415
}

0 commit comments

Comments
 (0)