Michael Stefaniuc : cmdlgtst: Remove superfluous casts.

Alexandre Julliard julliard at winehq.org
Thu Jan 8 08:30:42 CST 2009


Module: wine
Branch: master
Commit: 568a8b845aacd0a8a24917ed0a715981cbf8c82d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=568a8b845aacd0a8a24917ed0a715981cbf8c82d

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jan  8 00:37:23 2009 +0100

cmdlgtst: Remove superfluous casts.

---

 programs/cmdlgtst/cmdlgtst.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/programs/cmdlgtst/cmdlgtst.c b/programs/cmdlgtst/cmdlgtst.c
index 0c8b2b1..a4d3204 100644
--- a/programs/cmdlgtst/cmdlgtst.c
+++ b/programs/cmdlgtst/cmdlgtst.c
@@ -288,7 +288,7 @@ static void paintMainWindow(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lPar
 	/* Commence painting! */
 
 	BeginPaint(hWnd, &ps);
-	GetClientRect(hWnd, (LPRECT) &rect);
+	GetClientRect(hWnd, &rect);
 
 	pen = SelectObject(ps.hdc, CreatePen(0, 0, fgColor));
 	brush = SelectObject(ps.hdc, CreateSolidBrush(bgColor));
@@ -367,8 +367,8 @@ static void mw_ColorSetup(HWND hWnd)
 	if(ChooseColor(&cc)) {
 		RECT rect;
 
-		GetClientRect(hWnd, (LPRECT) &rect);
-		InvalidateRect(hWnd, (LPRECT) &rect, FALSE);
+		GetClientRect(hWnd, &rect);
+		InvalidateRect(hWnd, &rect, FALSE);
 		bgColor = cc.rgbResult;
 	}
 	else mw_checkError(hWnd, FALSE);
@@ -378,8 +378,8 @@ static void mw_FontSetup(HWND hWnd)
 {
 	if(ChooseFont(&cf)) {
 		RECT rect;
-		GetClientRect(hWnd, (LPRECT) &rect);
-		InvalidateRect(hWnd, (LPRECT) &rect, FALSE);
+		GetClientRect(hWnd, &rect);
+		InvalidateRect(hWnd, &rect, FALSE);
 		txtColor = cf.rgbColors;
 	}
 	else mw_checkError(hWnd, FALSE);
@@ -405,8 +405,8 @@ static void mw_OpenSetup(HWND hWnd)
 {
 	if(GetOpenFileName(&ofn)) {
 		RECT rect;
-		GetClientRect(hWnd, (LPRECT) &rect);
-		InvalidateRect(hWnd, (LPRECT) &rect, FALSE);
+		GetClientRect(hWnd, &rect);
+		InvalidateRect(hWnd, &rect, FALSE);
 	}
 	else mw_checkError(hWnd,FALSE);
 }
@@ -415,8 +415,8 @@ static void mw_SaveSetup(HWND hWnd)
 {
 	if(GetSaveFileName(&ofn)) {
 		RECT rect;
-		GetClientRect(hWnd, (LPRECT) &rect);
-		InvalidateRect(hWnd, (LPRECT) &rect, FALSE);
+		GetClientRect(hWnd, &rect);
+		InvalidateRect(hWnd, &rect, FALSE);
 	}
 	else mw_checkError(hWnd,FALSE);
 }




More information about the wine-cvs mailing list