From b2ad5aa1d9f3da57e0573c802b72b7797b5a587d Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 18 Oct 2019 19:23:52 +0200 Subject: [PATCH] Get rid of unnecessary cast Parameter is already of HDC type so this cast is unnecessary and can be removed. --- src/msw/utilsgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/utilsgui.cpp b/src/msw/utilsgui.cpp index ec67bb7a8a..c9538c12e2 100644 --- a/src/msw/utilsgui.cpp +++ b/src/msw/utilsgui.cpp @@ -206,7 +206,7 @@ void PixelToHIMETRIC(LONG *x, LONG *y) void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2) { - MoveToEx(hdc, x1, y1, NULL); LineTo((HDC) hdc, x2, y2); + MoveToEx(hdc, x1, y1, NULL); LineTo(hdc, x2, y2); } // Function dedicated to drawing horizontal/vertical lines with solid color