From 0aada6f97675200605951719f6629a0226cae0b8 Mon Sep 17 00:00:00 2001 From: SineStriker <55847490+SineStriker@users.noreply.github.com> Date: 周一, 03 3月 2025 23:11:36 +0800 Subject: [PATCH] minor tweaks --- src/core/contexts/win32windowcontext.cpp | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp index 3360b9d..00ff1b4 100644 --- a/src/core/contexts/win32windowcontext.cpp +++ b/src/core/contexts/win32windowcontext.cpp @@ -916,9 +916,7 @@ Q_UNUSED(oldAttribute) const auto hwnd = reinterpret_cast<HWND>(m_windowId); - if (!hwnd) { - return false; - } + Q_ASSERT(hwnd); const DynamicApis &apis = DynamicApis::instance(); const auto &extendMargins = [this, &apis, hwnd]() { -- Gitblit v1.9.1