From 005c4e953127365980c6079acc52c874894fba1b Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 摹曛, 07 12月 2023 17:22:05 +0800
Subject: [PATCH] use static_cast instead

---
 src/core/contexts/win32windowcontext.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp
index 27e5347..8259d6f 100644
--- a/src/core/contexts/win32windowcontext.cpp
+++ b/src/core/contexts/win32windowcontext.cpp
@@ -408,7 +408,7 @@
             // https://github.com/qt/qtbase/blob/e26a87f1ecc40bc8c6aa5b889fce67410a57a702/src/plugins/platforms/windows/qwindowscontext.cpp#L1546
             // Qt needs to refer to the WM_NCCALCSIZE message data that hasn't been processed, so we
             // have to process it after Qt acquired the initial data.
-            auto msg = reinterpret_cast<const MSG *>(message);
+            auto msg = static_cast<const MSG *>(message);
             if (msg->message == WM_NCCALCSIZE && orgLastMessageContext) {
                 LRESULT res;
                 if (Win32WindowContext::nonClientCalcSizeHandler(msg->hwnd, msg->message,

--
Gitblit v1.9.1