summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixWm.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-07 15:22:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-07 15:22:25 (GMT)
commit43fd6231753851e578bffc9ad6df133117802a36 (patch)
tree7de93e97f45d4246b54f4a2a09e7fcf3e2c3c86c /unix/tkUnixWm.c
parent1453df7a69c6f0900422a24d1d6b4f66f4540907 (diff)
downloadtk-43fd6231753851e578bffc9ad6df133117802a36.zip
tk-43fd6231753851e578bffc9ad6df133117802a36.tar.gz
tk-43fd6231753851e578bffc9ad6df133117802a36.tar.bz2
Eliminate a bunch of unneeded type-casts, mainly (char *)
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r--unix/tkUnixWm.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index d28f723..8fe1cc2 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -720,7 +720,7 @@ TkWmMapWindow(
XSetWMClientMachine(winPtr->display,
wmPtr->wrapperPtr->window, &textProp);
- XFree((char *) textProp.value);
+ XFree(textProp.value);
/*
* Inform the server (and more particularly any session
@@ -992,7 +992,7 @@ TkWmSetClass(
classPtr->res_class = Tcl_DStringValue(&ds);
XSetClassHint(winPtr->display, winPtr->wmInfoPtr->wrapperPtr->window,
classPtr);
- XFree((char *) classPtr);
+ XFree(classPtr);
Tcl_DStringFree(&name);
Tcl_DStringFree(&ds);
}
@@ -1501,7 +1501,7 @@ WmClientCmd(
XSetWMClientMachine(winPtr->display, wmPtr->wrapperPtr->window,
&textProp);
- XFree((char *) textProp.value);
+ XFree(textProp.value);
/*
* Inform the server (and more particularly any session manager)
@@ -1579,7 +1579,7 @@ WmColormapwindowsCmd(
Tcl_NewStringObj(winPtr2->pathName, TCL_INDEX_NONE));
}
}
- XFree((char *) cmapList);
+ XFree(cmapList);
Tcl_SetObjResult(interp, resultObj);
return TCL_OK;
}
@@ -4222,7 +4222,7 @@ ReparentEvent(
"ReparentEvent got bogus VROOT property:", actualFormat,
numItems);
}
- XFree((char *) virtualRootPtr);
+ XFree(virtualRootPtr);
}
Tk_DeleteErrorHandler(handler);
@@ -4273,7 +4273,7 @@ ReparentEvent(
Tk_DeleteErrorHandler(handler);
goto noReparent;
}
- XFree((char *) children);
+ XFree(children);
if ((ancestor == vRoot) ||
(ancestor == RootWindow(wrapperPtr->display,
wrapperPtr->screenNum))) {
@@ -4941,7 +4941,7 @@ UpdateSizeHints(
XSetWMNormalHints(winPtr->display, wmPtr->wrapperPtr->window, hintsPtr);
- XFree((char *) hintsPtr);
+ XFree(hintsPtr);
}
/*
@@ -6524,7 +6524,7 @@ TkWmStackorderToplevel(
*window_ptr = NULL;
if (numChildren) {
- XFree((char *) children);
+ XFree(children);
}
}
@@ -6698,7 +6698,7 @@ TkWmAddToColormapWindows(
count+1);
ckfree(newPtr);
if (oldPtr != NULL) {
- XFree((char *) oldPtr);
+ XFree(oldPtr);
}
}
@@ -6794,7 +6794,7 @@ TkWmRemoveFromColormapWindows(
break;
}
}
- XFree((char *) oldPtr);
+ XFree(oldPtr);
}
/*