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 <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
7dfc3ed663
commit
a420d02538
@ -725,7 +725,7 @@ QString decodeMSG(const MSG& msg)
|
|||||||
break;
|
break;
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
{
|
{
|
||||||
const LPCREATESTRUCT lpcs = reinterpret_cast<const LPCREATESTRUCT>(lParam);
|
auto lpcs = reinterpret_cast<LPCREATESTRUCT>(lParam);
|
||||||
QString className;
|
QString className;
|
||||||
if (lpcs->lpszClass != nullptr) {
|
if (lpcs->lpszClass != nullptr) {
|
||||||
className = HIWORD(lpcs->lpszClass) == 0
|
className = HIWORD(lpcs->lpszClass) == 0
|
||||||
@ -847,7 +847,7 @@ QString decodeMSG(const MSG& msg)
|
|||||||
break;
|
break;
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
{
|
{
|
||||||
const LPWINDOWPOS winPos = reinterpret_cast<const LPWINDOWPOS>(lParam);
|
auto winPos = reinterpret_cast<LPWINDOWPOS>(lParam);
|
||||||
if (!winPos)
|
if (!winPos)
|
||||||
break;
|
break;
|
||||||
const auto insertAfter = quintptr(winPos->hwndInsertAfter);
|
const auto insertAfter = quintptr(winPos->hwndInsertAfter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user