summaryrefslogtreecommitdiffstats
path: root/generic/tkGet.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-27 12:36:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-27 12:36:56 (GMT)
commitb83ed80002d8d8eb676c9f7c81a794e8216e3498 (patch)
treec60953cf292d7784e416ed6fd0555d89d2e6f2c3 /generic/tkGet.c
parentfb81bb7d6255f5040661d59559edf32bc997bd6d (diff)
downloadtk-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.c8
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;
}