Address cpplint issue "Using C-style cast. Use reinterpret_cast<BYTE*>(...) instead [readability/casting] [4]"

This commit is contained in:
Ales Pergl 2017-04-05 11:53:37 +02:00
parent 91cff2e6c7
commit 9b7fbd4d22
4 changed files with 41 additions and 26 deletions

View file

@ -27,7 +27,8 @@ void Win32Notification::Show(
HDC hdcScreen = GetDC(NULL);
image = CreateDIBitmap(hdcScreen, &bmi, CBM_INIT, icon.getPixels(),
(BITMAPINFO*)&bmi, DIB_RGB_COLORS);
reinterpret_cast<BITMAPINFO*>(&bmi),
DIB_RGB_COLORS);
ReleaseDC(NULL, hdcScreen);
icon.unlockPixels();