From f4159e06f6e50fa9d145bf3f239cfc44817cd336 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 4 May 2018 20:28:44 +0200 Subject: [PATCH] Fix compilation warning --- src/widgets/osdpretty.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/osdpretty.cpp b/src/widgets/osdpretty.cpp index f70ba5bee..55558e52c 100644 --- a/src/widgets/osdpretty.cpp +++ b/src/widgets/osdpretty.cpp @@ -98,9 +98,9 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent) #ifdef Q_OS_WIN32 // Don't show the window in the taskbar. Qt::ToolTip does this too, but it // adds an extra ugly shadow. - int ex_style = GetWindowLong(winId(), GWL_EXSTYLE); + int ex_style = GetWindowLong((HWND) winId(), GWL_EXSTYLE); ex_style |= WS_EX_NOACTIVATE; - SetWindowLong(winId(), GWL_EXSTYLE, ex_style); + SetWindowLong((HWND) winId(), GWL_EXSTYLE, ex_style); #endif // Mode settings