diff options
author | nijtmans <nijtmans> | 2009-01-28 20:47:49 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-01-28 20:47:49 (GMT) |
commit | 53f95f2d8f73b96fbd4dac1a784ce90eb133c0a1 (patch) | |
tree | fdebc2108b277faed42ddafa5e7633fc51b503ec /generic/ttk/ttkTheme.c | |
parent | 8faa6f4e39faa11f5f8363f8ce53550991b95d3f (diff) | |
download | tk-53f95f2d8f73b96fbd4dac1a784ce90eb133c0a1.zip tk-53f95f2d8f73b96fbd4dac1a784ce90eb133c0a1.tar.gz tk-53f95f2d8f73b96fbd4dac1a784ce90eb133c0a1.tar.bz2 |
- eliminate some unnessary type casts
- some internal const decorations
- spacing
Diffstat (limited to 'generic/ttk/ttkTheme.c')
-rw-r--r-- | generic/ttk/ttkTheme.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkTheme.c b/generic/ttk/ttkTheme.c index 91805d6..1bcee83 100644 --- a/generic/ttk/ttkTheme.c +++ b/generic/ttk/ttkTheme.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * $Id: ttkTheme.c,v 1.16 2008/10/24 20:01:10 jenglish Exp $ + * $Id: ttkTheme.c,v 1.17 2009/01/28 20:47:49 nijtmans Exp $ */ #include <stdlib.h> @@ -332,7 +332,7 @@ static Theme *NewTheme(Ttk_ResourceCache cache, Ttk_Theme parent) themePtr->rootStyle->styleName = Tcl_GetHashKey(&themePtr->styleTable, entryPtr); themePtr->rootStyle->cache = themePtr->cache; - Tcl_SetHashValue(entryPtr, (ClientData)themePtr->rootStyle); + Tcl_SetHashValue(entryPtr, themePtr->rootStyle); return themePtr; } @@ -563,7 +563,7 @@ Ttk_CreateTheme( if (!parent) parent = pkgPtr->defaultTheme; themePtr = NewTheme(pkgPtr->cache, parent); - Tcl_SetHashValue(entryPtr, (ClientData) themePtr); + Tcl_SetHashValue(entryPtr, themePtr); return themePtr; } @@ -711,7 +711,7 @@ Ttk_Style Ttk_GetStyle(Ttk_Theme themePtr, const char *styleName) stylePtr->styleName = Tcl_GetHashKey(&themePtr->styleTable, entryPtr); stylePtr->cache = stylePtr->parentStyle->cache; - Tcl_SetHashValue(entryPtr, (ClientData)stylePtr); + Tcl_SetHashValue(entryPtr, stylePtr); return stylePtr; } return (Style*)Tcl_GetHashValue(entryPtr); |