From 94119478207034b767c1d0a4fa5d8950f7b07b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 4 Aug 2022 18:18:37 +0200 Subject: Use C++ casts, nullptr. --- c/layout.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'c/layout.cpp') diff --git a/c/layout.cpp b/c/layout.cpp index 5fe5da4..24ad11f 100644 --- a/c/layout.cpp +++ b/c/layout.cpp @@ -31,10 +31,11 @@ void UpdateLayout(int w, int h) /* Resize status bar parts. */ const int aParts[] = {rc.right-Dpi(55), rc.right}; - SendMessage(g_hWndStatus, SB_SETPARTS, (WPARAM)sizeof(aParts), (LPARAM)aParts); + SendMessage(g_hWndStatus, SB_SETPARTS, + reinterpret_cast(sizeof(aParts)), reinterpret_cast(aParts)); SendMessage(g_hWnd, WM_SETREDRAW, TRUE, 0); - RedrawWindow(g_hWnd, NULL, NULL, + RedrawWindow(g_hWnd, nullptr, nullptr, RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN); } @@ -61,7 +62,7 @@ void DlvDragger::Drag(const int, const int y) h = rrDlv.bottom-y; g_dlv->SetHeight(h); UpdateLayout(); - RedrawWindow(g_hWnd, NULL, NULL, + RedrawWindow(g_hWnd, nullptr, nullptr, RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_UPDATENOW); } -- cgit v1.2.3