winecfg: Remove some superfluous casts.
Michael Stefaniuc
mstefani at redhat.de
Wed Dec 3 22:31:26 CST 2008
---
programs/winecfg/libraries.c | 2 +-
programs/winecfg/theme.c | 13 +++++--------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/programs/winecfg/libraries.c b/programs/winecfg/libraries.c
index 92dd970..6abe04d 100644
--- a/programs/winecfg/libraries.c
+++ b/programs/winecfg/libraries.c
@@ -495,7 +495,7 @@ static void on_add_click(HWND dialog)
load_library_settings(dialog);
- SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SELECTSTRING, (WPARAM) 0, (LPARAM) buffer);
+ SendDlgItemMessage(dialog, IDC_DLLS_LIST, LB_SELECTSTRING, 0, (LPARAM) buffer);
set_controls_from_selection(dialog);
}
diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c
index 9b7e857..d87aba0 100644
--- a/programs/winecfg/theme.c
+++ b/programs/winecfg/theme.c
@@ -302,7 +302,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
for (i = 0; i < themeFilesCount; i++)
{
- ThemeFile* item = (ThemeFile*)DSA_GetItemPtr (themeFiles, i);
+ ThemeFile* item = DSA_GetItemPtr (themeFiles, i);
SendMessageW (comboTheme, CB_ADDSTRING, 0,
(LPARAM)item->fancyName);
}
@@ -316,7 +316,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
BOOL found = FALSE;
for (i = 0; i < themeFilesCount; i++)
{
- theme = (ThemeFile*)DSA_GetItemPtr (themeFiles, i);
+ theme = DSA_GetItemPtr (themeFiles, i);
if (lstrcmpiW (theme->themeFileName, currentTheme) == 0)
{
found = TRUE;
@@ -332,8 +332,7 @@ static BOOL fill_theme_list (HWND comboTheme, HWND comboColor, HWND comboSize)
myEnumThemeProc (NULL, currentTheme, currentTheme,
currentTheme, NULL, NULL);
themeIndex = themeFilesCount;
- theme = (ThemeFile*)DSA_GetItemPtr (themeFiles,
- themeFilesCount-1);
+ theme = DSA_GetItemPtr (themeFiles, themeFilesCount-1);
}
fill_color_size_combos (theme, comboColor, comboSize);
select_color_and_size (theme, currentColor, comboColor,
@@ -364,8 +363,7 @@ static BOOL update_color_and_size (int themeIndex, HWND comboColor,
WCHAR currentTheme[MAX_PATH];
WCHAR currentColor[MAX_PATH];
WCHAR currentSize[MAX_PATH];
- ThemeFile* theme =
- (ThemeFile*)DSA_GetItemPtr (themeFiles, themeIndex - 1);
+ ThemeFile* theme = DSA_GetItemPtr (themeFiles, themeIndex - 1);
fill_color_size_combos (theme, comboColor, comboSize);
@@ -399,8 +397,7 @@ static void do_apply_theme (int themeIndex, int colorIndex, int sizeIndex)
}
else
{
- ThemeFile* theme =
- (ThemeFile*)DSA_GetItemPtr (themeFiles, themeIndex-1);
+ ThemeFile* theme = DSA_GetItemPtr (themeFiles, themeIndex-1);
const WCHAR* themeFileName = theme->themeFileName;
const WCHAR* colorName = NULL;
const WCHAR* sizeName = NULL;
--
1.6.0.rc1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081204/ef0e889c/attachment.pgp
More information about the wine-patches
mailing list