diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-27 12:36:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-02-27 12:36:56 (GMT) |
commit | b83ed80002d8d8eb676c9f7c81a794e8216e3498 (patch) | |
tree | c60953cf292d7784e416ed6fd0555d89d2e6f2c3 /generic/tkGet.c | |
parent | fb81bb7d6255f5040661d59559edf32bc997bd6d (diff) | |
download | tk-b83ed80002d8d8eb676c9f7c81a794e8216e3498.zip tk-b83ed80002d8d8eb676c9f7c81a794e8216e3498.tar.gz tk-b83ed80002d8d8eb676c9f7c81a794e8216e3498.tar.bz2 |
Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around Tcl_GetIndexFromObjStruct.
Diffstat (limited to 'generic/tkGet.c')
-rw-r--r-- | generic/tkGet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkGet.c b/generic/tkGet.c index d58b4a5..c220fdc 100644 --- a/generic/tkGet.c +++ b/generic/tkGet.c @@ -71,8 +71,8 @@ Tk_GetAnchorFromObj( { int index, code; - code = Tcl_GetIndexFromObj(interp, objPtr, anchorStrings, "anchor", 0, - &index); + code = Tcl_GetIndexFromObjStruct(interp, objPtr, anchorStrings, + sizeof(char *), "anchor", 0, &index); if (code == TCL_OK) { *anchorPtr = (Tk_Anchor) index; } @@ -385,8 +385,8 @@ Tk_GetJustifyFromObj( { int index, code; - code = Tcl_GetIndexFromObj(interp, objPtr, justifyStrings, - "justification", 0, &index); + code = Tcl_GetIndexFromObjStruct(interp, objPtr, justifyStrings, + sizeof(char *), "justification", 0, &index); if (code == TCL_OK) { *justifyPtr = (Tk_Justify) index; } |