https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bc89074cd5e8f4424c2db400d50e99d8e9546b06

commit bc89074cd5e8f4424c2db400d50e99d8e9546b06
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Thu Mar 9 08:23:08 2023 +0900
Commit:     GitHub <[email protected]>
CommitDate: Thu Mar 9 08:23:08 2023 +0900

    [NOTEPAD] Remove some needless type casts (#5134)
    
    CORE-18837
---
 base/applications/notepad/dialog.c   | 8 ++++----
 base/applications/notepad/settings.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/base/applications/notepad/dialog.c 
b/base/applications/notepad/dialog.c
index 6d3341b1ffc..be7f1148b69 100644
--- a/base/applications/notepad/dialog.c
+++ b/base/applications/notepad/dialog.c
@@ -141,7 +141,7 @@ VOID DIALOG_StatusBarAlignParts(VOID)
     parts[0] = max(parts[0], defaultWidths[0]);
     parts[1] = max(parts[1], defaultWidths[0] + defaultWidths[1]);
 
-    SendMessageW(Globals.hStatusBar, SB_SETPARTS, (WPARAM)ARRAY_SIZE(parts), 
(LPARAM)parts);
+    SendMessageW(Globals.hStatusBar, SB_SETPARTS, ARRAY_SIZE(parts), 
(LPARAM)parts);
 }
 
 static VOID DIALOG_StatusBarUpdateLineEndings(VOID)
@@ -1032,7 +1032,7 @@ VOID DIALOG_FilePrint(VOID)
 
 VOID DIALOG_FileExit(VOID)
 {
-    PostMessage(Globals.hMainWnd, WM_CLOSE, 0, 0l);
+    PostMessage(Globals.hMainWnd, WM_CLOSE, 0, 0);
 }
 
 VOID DIALOG_EditUndo(VOID)
@@ -1062,7 +1062,7 @@ VOID DIALOG_EditDelete(VOID)
 
 VOID DIALOG_EditSelectAll(VOID)
 {
-    SendMessage(Globals.hEdit, EM_SETSEL, 0, (LPARAM)-1);
+    SendMessage(Globals.hEdit, EM_SETSEL, 0, -1);
 }
 
 VOID DIALOG_EditTimeDate(VOID)
@@ -1233,7 +1233,7 @@ VOID DIALOG_SelectFont(VOID)
 
         Globals.hFont = CreateFontIndirect(&lf);
         Globals.lfFont = lf;
-        SendMessage(Globals.hEdit, WM_SETFONT, (WPARAM)Globals.hFont, 
(LPARAM)TRUE);
+        SendMessage(Globals.hEdit, WM_SETFONT, (WPARAM)Globals.hFont, TRUE);
         if (currfont != NULL)
             DeleteObject(currfont);
     }
diff --git a/base/applications/notepad/settings.c 
b/base/applications/notepad/settings.c
index 87410a1673b..e9abc643324 100644
--- a/base/applications/notepad/settings.c
+++ b/base/applications/notepad/settings.c
@@ -210,7 +210,7 @@ void NOTEPAD_LoadSettingsFromRegistry(void)
     }
 
     hFont = CreateFontIndirect(&Globals.lfFont);
-    SendMessage(Globals.hEdit, WM_SETFONT, (WPARAM)hFont, (LPARAM)TRUE);
+    SendMessage(Globals.hEdit, WM_SETFONT, (WPARAM)hFont, TRUE);
     if (hFont)
     {
         if (Globals.hFont)

Reply via email to