diff options
author | nijtmans <nijtmans> | 2009-02-03 23:55:47 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2009-02-03 23:55:47 (GMT) |
commit | 4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6 (patch) | |
tree | aa98658e57c70b6cb91802ffef5779126e54b6b5 /generic/tkObj.c | |
parent | c9098b1706ee463447e128156b9baaf23fa4f0a9 (diff) | |
download | tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.zip tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.tar.gz tk-4b9f05fc68f4d1a561c16fcb44c31af46bedb3d6.tar.bz2 |
- eliminate some unnessary type casts
- some internal const decorations
- spacing
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r-- | generic/tkObj.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c index b92f172..d3ce270 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkObj.c,v 1.25 2008/11/29 00:12:58 ferrieux Exp $ + * RCS: @(#) $Id: tkObj.c,v 1.26 2009/02/03 23:55:47 nijtmans Exp $ */ #include "tkInt.h" @@ -383,7 +383,8 @@ SetPixelFromAny( Tcl_Obj *objPtr) /* The object to convert. */ { const Tcl_ObjType *typePtr; - char *string, *rest; + const char *string; + char *rest; double d; int i, units; @@ -637,7 +638,8 @@ SetMMFromAny( Tcl_Obj *objPtr) /* The object to convert. */ { const Tcl_ObjType *typePtr; - char *string, *rest; + const char *string; + char *rest; double d; int units; MMRep *mmPtr; |