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
parent cfb27d9a74
commit 1dbab53e5a
4 changed files with 11 additions and 11 deletions

View File

@ -1304,7 +1304,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);