OSDPretty: Remove use of C-style cast
This commit is contained in:
@@ -108,9 +108,9 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent)
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
// Don't show the window in the taskbar. Qt::ToolTip does this too, but it adds an extra ugly shadow.
|
// 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;
|
ex_style |= WS_EX_NOACTIVATE;
|
||||||
SetWindowLong((HWND)winId(), GWL_EXSTYLE, ex_style);
|
SetWindowLong(reinterpret_cast<HWND>(winId()), GWL_EXSTYLE, ex_style);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Mode settings
|
// Mode settings
|
||||||
|
|||||||
Reference in New Issue
Block a user