[Analyzers][CPP]Turn on warning 26471 (#23103)

Don't use reinterpret_cast. A cast from void* can use static_cast
This commit is contained in:
sosssego
2023-01-16 08:18:55 -03:00
committed by GitHub
parent 1a1f4351ca
commit d84a13bb7e
11 changed files with 24 additions and 9 deletions

View File

@@ -748,7 +748,7 @@ LRESULT CALLBACK FancyZones::s_WndProc(HWND window, UINT message, WPARAM wparam,
if (!thisRef && (message == WM_CREATE))
{
const auto createStruct = reinterpret_cast<LPCREATESTRUCT>(lparam);
thisRef = reinterpret_cast<FancyZones*>(createStruct->lpCreateParams);
thisRef = static_cast<FancyZones*>(createStruct->lpCreateParams);
SetWindowLongPtr(window, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(thisRef));
}