diff options
author | nijtmans <nijtmans> | 2010-06-15 11:16:02 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-06-15 11:16:02 (GMT) |
commit | 1d9e4b35ac1edb7acb7a11bb871ab2a8d4263892 (patch) | |
tree | 377b18f7cb439e3eb421010182cff5c13fb0d3f6 /generic/tkCanvPoly.c | |
parent | 8aef287d1e78682504c84c81e646a42a6730939e (diff) | |
download | tk-1d9e4b35ac1edb7acb7a11bb871ab2a8d4263892.zip tk-1d9e4b35ac1edb7acb7a11bb871ab2a8d4263892.tar.gz tk-1d9e4b35ac1edb7acb7a11bb871ab2a8d4263892.tar.bz2 |
Eliminate many unnecessary (ClientData) type casts.
Diffstat (limited to 'generic/tkCanvPoly.c')
-rw-r--r-- | generic/tkCanvPoly.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index 9f09c3c..e777d60 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvPoly.c,v 1.26 2010/02/17 19:21:16 nijtmans Exp $ + * RCS: @(#) $Id: tkCanvPoly.c,v 1.27 2010/06/15 11:16:03 nijtmans Exp $ */ #include "tkInt.h" @@ -57,23 +57,23 @@ typedef struct PolygonItem { */ static const Tk_CustomOption smoothOption = { - TkSmoothParseProc, TkSmoothPrintProc, (ClientData) NULL + TkSmoothParseProc, TkSmoothPrintProc, NULL }; static const Tk_CustomOption stateOption = { - TkStateParseProc, TkStatePrintProc, (ClientData) 2 + TkStateParseProc, TkStatePrintProc, INT2PTR(2) }; static const Tk_CustomOption tagsOption = { - Tk_CanvasTagsParseProc, Tk_CanvasTagsPrintProc, (ClientData) NULL + Tk_CanvasTagsParseProc, Tk_CanvasTagsPrintProc, NULL }; static const Tk_CustomOption dashOption = { - TkCanvasDashParseProc, TkCanvasDashPrintProc, (ClientData) NULL + TkCanvasDashParseProc, TkCanvasDashPrintProc, NULL }; static const Tk_CustomOption offsetOption = { TkOffsetParseProc, TkOffsetPrintProc, - (ClientData) (TK_OFFSET_RELATIVE|TK_OFFSET_INDEX) + INT2PTR(TK_OFFSET_RELATIVE|TK_OFFSET_INDEX) }; static const Tk_CustomOption pixelOption = { - TkPixelParseProc, TkPixelPrintProc, (ClientData) NULL + TkPixelParseProc, TkPixelPrintProc, NULL }; static const Tk_ConfigSpec configSpecs[] = { |