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
commit 8c7ab286f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 31 additions and 36 deletions

View file

@ -141,7 +141,7 @@ void RenderWidget::OnHandleChanged(void* handle)
#ifdef _WIN32
// Remove rounded corners from the render window on Windows 11
const DWM_WINDOW_CORNER_PREFERENCE corner_preference = DWMWCP_DONOTROUND;
DwmSetWindowAttribute(reinterpret_cast<HWND>(handle), DWMWA_WINDOW_CORNER_PREFERENCE,
DwmSetWindowAttribute(static_cast<HWND>(handle), DWMWA_WINDOW_CORNER_PREFERENCE,
&corner_preference, sizeof(corner_preference));
#endif
}