From a217faae7c77ed16a25a6887f2906712884a35f6 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 10 Jun 2022 00:47:11 +0200 Subject: [PATCH] OSDPretty: Remove use of C-style cast --- src/osd/osdpretty.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/osdpretty.cpp b/src/osd/osdpretty.cpp index 493c686b4..fe57333d2 100644 --- a/src/osd/osdpretty.cpp +++ b/src/osd/osdpretty.cpp @@ -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(winId()), GWL_EXSTYLE); ex_style |= WS_EX_NOACTIVATE; - SetWindowLong((HWND)winId(), GWL_EXSTYLE, ex_style); + SetWindowLong(reinterpret_cast(winId()), GWL_EXSTYLE, ex_style); #endif // Mode settings