Merge pull request #13181 from tygyh/Replace-'reinterpret_cast'

Replace 'reinterpret_cast' with 'static_cast'
This commit is contained in:
JosJuice
2025-03-15 15:31:38 +01:00
committed by GitHub
26 changed files with 31 additions and 36 deletions

View File

@ -175,8 +175,7 @@ LRESULT PlatformWin32::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
{
case WM_NCCREATE:
{
platform =
reinterpret_cast<PlatformWin32*>(reinterpret_cast<CREATESTRUCT*>(lParam)->lpCreateParams);
platform = static_cast<PlatformWin32*>(reinterpret_cast<CREATESTRUCT*>(lParam)->lpCreateParams);
SetWindowLongPtr(hwnd, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(platform));
return DefWindowProc(hwnd, msg, wParam, lParam);
}