OSDPretty: Remove use of C-style cast

This commit is contained in:
Jonas Kvinge 2022-06-10 00:47:11 +02:00
parent 184c39bbb7
commit a217faae7c
1 changed files with 2 additions and 2 deletions

View File

@ -108,9 +108,9 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent)
#ifdef Q_OS_WIN
// Don't show the window in the taskbar. Qt::ToolTip does this too, but it adds an extra ugly shadow.
int ex_style = GetWindowLong((HWND)winId(), GWL_EXSTYLE);
int ex_style = GetWindowLong(reinterpret_cast<HWND>(winId()), GWL_EXSTYLE);
ex_style |= WS_EX_NOACTIVATE;
SetWindowLong((HWND)winId(), GWL_EXSTYLE, ex_style);
SetWindowLong(reinterpret_cast<HWND>(winId()), GWL_EXSTYLE, ex_style);
#endif
// Mode settings