Prefer static_cast to reinterpret_cast where possible.

Just safer. Could probably do in a lot more places... another time.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6293 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien
2022-01-08 18:22:20 +00:00
committed by sfan5
parent 1b8be72ccb
commit 684293f527
3 changed files with 5 additions and 5 deletions

View File

@ -1140,7 +1140,7 @@ bool CIrrDeviceWin32::present(video::IImage* image, void* windowId, core::rect<s
{
HWND hwnd = HWnd;
if ( windowId )
hwnd = reinterpret_cast<HWND>(windowId);
hwnd = static_cast<HWND>(windowId);
HDC dc = GetDC(hwnd);