From a420d02538d28854914a6978c9637a0ddd652146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 6 Aug 2018 14:59:34 +0200 Subject: Make qcoreapplication_win compile in mingw g++ 8.2 "type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]" And preemptively fix Clang nagging about repeated type. Change-Id: I2253b032d1867aa9976b4bdfc0f45023198f917c Reviewed-by: Friedemann Kleint --- src/corelib/kernel/qcoreapplication_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/kernel/qcoreapplication_win.cpp') diff --git a/src/corelib/kernel/qcoreapplication_win.cpp b/src/corelib/kernel/qcoreapplication_win.cpp index 7e470a9d56..0109e2c658 100644 --- a/src/corelib/kernel/qcoreapplication_win.cpp +++ b/src/corelib/kernel/qcoreapplication_win.cpp @@ -725,7 +725,7 @@ QString decodeMSG(const MSG& msg) break; case WM_CREATE: { - const LPCREATESTRUCT lpcs = reinterpret_cast(lParam); + auto lpcs = reinterpret_cast(lParam); QString className; if (lpcs->lpszClass != nullptr) { className = HIWORD(lpcs->lpszClass) == 0 @@ -847,7 +847,7 @@ QString decodeMSG(const MSG& msg) break; case WM_WINDOWPOSCHANGED: { - const LPWINDOWPOS winPos = reinterpret_cast(lParam); + auto winPos = reinterpret_cast(lParam); if (!winPos) break; const auto insertAfter = quintptr(winPos->hwndInsertAfter); -- cgit v1.2.3