diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index 649f2f6da..6cc7c69a3 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -641,11 +641,7 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *result) { #ifdef USEWINSDK -# if (QT_VERSION == QT_VERSION_CHECK(5, 11, 1)) - MSG *msg = *reinterpret_cast(message); -# else MSG *msg = reinterpret_cast(message); -# endif bool returnValue = false; diff --git a/src/widgets/FramelessEmbedWindow.cpp b/src/widgets/FramelessEmbedWindow.cpp index 263daf78b..f34759f81 100644 --- a/src/widgets/FramelessEmbedWindow.cpp +++ b/src/widgets/FramelessEmbedWindow.cpp @@ -30,11 +30,7 @@ FramelessEmbedWindow::FramelessEmbedWindow() bool FramelessEmbedWindow::nativeEvent(const QByteArray &eventType, void *message, long *result) { -# if (QT_VERSION == QT_VERSION_CHECK(5, 11, 1)) - MSG *msg = *reinterpret_cast(message); -# else MSG *msg = reinterpret_cast(message); -# endif if (msg->message == WM_COPYDATA) {