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)
commit3ce2b87dd5e2937555b28b21c6d40e812e77a3de (patch)
treec60953cf292d7784e416ed6fd0555d89d2e6f2c3 /generic/tkGet.c
parent80385b31add9a7e4f9d43b78ff46591fb0def3d6 (diff)
downloadtk-3ce2b87dd5e2937555b28b21c6d40e812e77a3de.zip
tk-3ce2b87dd5e2937555b28b21c6d40e812e77a3de.tar.gz
tk-3ce2b87dd5e2937555b28b21c6d40e812e77a3de.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;
}