summaryrefslogtreecommitdiffstats
path: root/generic/tkSquare.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-13 14:44:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-13 14:44:54 (GMT)
commitc5018a98c472597e3f6e1bb4717bdf89b89c2cf2 (patch)
tree75d77b8bbc0c087b905d4dbdda31e7f0e024f442 /generic/tkSquare.c
parent1cf82956754b0b42ef212635195b5c29fc93a0fc (diff)
downloadtk-c5018a98c472597e3f6e1bb4717bdf89b89c2cf2.zip
tk-c5018a98c472597e3f6e1bb4717bdf89b89c2cf2.tar.gz
tk-c5018a98c472597e3f6e1bb4717bdf89b89c2cf2.tar.bz2
Not actually necessary to fix those (they don't give warnings because those are switched off), but while on it it's better to correct those ill-usages of 'None' too
Diffstat (limited to 'generic/tkSquare.c')
-rw-r--r--generic/tkSquare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkSquare.c b/generic/tkSquare.c
index 355a447..b8a4fad 100644
--- a/generic/tkSquare.c
+++ b/generic/tkSquare.c
@@ -332,7 +332,7 @@ SquareConfigure(
Tk_SetWindowBackground(squarePtr->tkwin,
Tk_3DBorderColor(bgBorder)->pixel);
Tcl_GetBooleanFromObj(NULL, squarePtr->doubleBufferPtr, &doubleBuffer);
- if ((squarePtr->gc == None) && (doubleBuffer)) {
+ if ((squarePtr->gc == NULL) && doubleBuffer) {
XGCValues gcValues;
gcValues.function = GXcopy;
gcValues.graphics_exposures = False;
@@ -397,7 +397,7 @@ SquareObjEventProc(
if (squarePtr->tkwin != NULL) {
Tk_FreeConfigOptions((char *) squarePtr, squarePtr->optionTable,
squarePtr->tkwin);
- if (squarePtr->gc != None) {
+ if (squarePtr->gc != NULL) {
Tk_FreeGC(squarePtr->display, squarePtr->gc);
}
squarePtr->tkwin = NULL;