diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-12-08 08:24:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-12-08 08:24:22 (GMT) |
commit | 4eefa7b3a6b659a083c0697a4ded7779823b495c (patch) | |
tree | bd3df997ce339709a3ac2d29274ad22cb4b5da46 /unix | |
parent | 2fa093a5cf1c12cb8ea6d81647899312643b89e5 (diff) | |
download | tk-4eefa7b3a6b659a083c0697a4ded7779823b495c.zip tk-4eefa7b3a6b659a083c0697a4ded7779823b495c.tar.gz tk-4eefa7b3a6b659a083c0697a4ded7779823b495c.tar.bz2 |
Eliminate USE_OLD_TAG_SEARCH: It isn't used and tested any more.
Eliminate a ton of unnecessary type casts
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixButton.c | 2 | ||||
-rw-r--r-- | unix/tkUnixEvent.c | 2 | ||||
-rw-r--r-- | unix/tkUnixMenubu.c | 2 | ||||
-rw-r--r-- | unix/tkUnixScale.c | 2 | ||||
-rw-r--r-- | unix/tkUnixScrlbr.c | 2 | ||||
-rw-r--r-- | unix/tkUnixSelect.c | 2 | ||||
-rw-r--r-- | unix/tkUnixWm.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/unix/tkUnixButton.c b/unix/tkUnixButton.c index 6a99124..975fca8 100644 --- a/unix/tkUnixButton.c +++ b/unix/tkUnixButton.c @@ -396,7 +396,7 @@ void TkpDisplayButton( ClientData clientData) /* Information about widget. */ { - register TkButton *butPtr = (TkButton *) clientData; + register TkButton *butPtr = clientData; GC gc; Tk_3DBorder border; Pixmap pixmap; diff --git a/unix/tkUnixEvent.c b/unix/tkUnixEvent.c index cc626c2..a3867a4 100644 --- a/unix/tkUnixEvent.c +++ b/unix/tkUnixEvent.c @@ -462,7 +462,7 @@ DisplayFileProc( ClientData clientData, /* The display pointer. */ int flags) /* Should be TCL_READABLE. */ { - TkDisplay *dispPtr = (TkDisplay *) clientData; + TkDisplay *dispPtr = clientData; Display *display = dispPtr->display; int numFound; diff --git a/unix/tkUnixMenubu.c b/unix/tkUnixMenubu.c index ad71b7b..ba78016 100644 --- a/unix/tkUnixMenubu.c +++ b/unix/tkUnixMenubu.c @@ -58,7 +58,7 @@ void TkpDisplayMenuButton( ClientData clientData) /* Information about widget. */ { - register TkMenuButton *mbPtr = (TkMenuButton *) clientData; + register TkMenuButton *mbPtr = clientData; GC gc; Tk_3DBorder border; Pixmap pixmap; diff --git a/unix/tkUnixScale.c b/unix/tkUnixScale.c index 8f88018..d0208b7 100644 --- a/unix/tkUnixScale.c +++ b/unix/tkUnixScale.c @@ -541,7 +541,7 @@ void TkpDisplayScale( ClientData clientData) /* Widget record for scale. */ { - TkScale *scalePtr = (TkScale *) clientData; + TkScale *scalePtr = clientData; Tk_Window tkwin = scalePtr->tkwin; Tcl_Interp *interp = scalePtr->interp; Pixmap pixmap; diff --git a/unix/tkUnixScrlbr.c b/unix/tkUnixScrlbr.c index 2446c3f..5a7b0a1 100644 --- a/unix/tkUnixScrlbr.c +++ b/unix/tkUnixScrlbr.c @@ -97,7 +97,7 @@ void TkpDisplayScrollbar( ClientData clientData) /* Information about window. */ { - register TkScrollbar *scrollPtr = (TkScrollbar *) clientData; + register TkScrollbar *scrollPtr = clientData; register Tk_Window tkwin = scrollPtr->tkwin; XPoint points[7]; Tk_3DBorder border; diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index e67970d..6155f54 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.c @@ -766,7 +766,7 @@ SelTimeoutProc( retrPtr->result = TCL_ERROR; } else { retrPtr->timeout = Tcl_CreateTimerHandler(1000, SelTimeoutProc, - (ClientData) retrPtr); + retrPtr); } } diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 6e75c55..1c55f40 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -6411,7 +6411,7 @@ TkWmStackorderToplevel( windows = NULL; } else { for (i = 0; i < numChildren; i++) { - hPtr = Tcl_FindHashEntry(&table, (char *) children[i]); + hPtr = Tcl_FindHashEntry(&table, children[i]); if (hPtr != NULL) { childWinPtr = Tcl_GetHashValue(hPtr); *window_ptr++ = childWinPtr; |