diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-01-02 22:52:38 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-01-02 22:52:38 (GMT) |
commit | 892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad (patch) | |
tree | 729b6fa569e8ee8448009d10292da7e7a85108b0 /generic/tkButton.c | |
parent | 8f3de0a30c0a7ea499c81e5e0e000d2297233137 (diff) | |
download | tk-892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad.zip tk-892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad.tar.gz tk-892f8aa8caa8bcd31d2df297e29b6ffe2013f2ad.tar.bz2 |
SMALL FIX: Remove useless explicit casts now that we require C89 or later.
Diffstat (limited to 'generic/tkButton.c')
-rw-r--r-- | generic/tkButton.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c index a0968bc..70b77d0 100644 --- a/generic/tkButton.c +++ b/generic/tkButton.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkButton.c,v 1.35 2009/06/29 14:35:01 das Exp $ + * RCS: @(#) $Id: tkButton.c,v 1.36 2010/01/02 22:52:38 dkf Exp $ */ #include "tkInt.h" @@ -633,7 +633,7 @@ ButtonCreate( TkButton *butPtr; Tk_OptionTable optionTable; Tk_Window tkwin; - ThreadSpecificData *tsdPtr = (ThreadSpecificData *) + ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); if (!tsdPtr->defaultsInitialized) { @@ -1336,9 +1336,7 @@ TkButtonWorldChanged( XGCValues gcValues; GC newGC; unsigned long mask; - TkButton *butPtr; - - butPtr = (TkButton *) instanceData; + TkButton *butPtr = instanceData; /* * Recompute GCs. |