summaryrefslogtreecommitdiffstats
path: root/generic/tclOOInfo.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2024-05-28 03:02:13 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2024-05-28 03:02:13 (GMT)
commit6be516b44a873f6ced4a54f374e2eb4be624a6ce (patch)
tree3b7b8cfca0bef90c815c93d85ac285800be6a935 /generic/tclOOInfo.c
parentc6139c195316122d0e72fde74fcaac9b1f7f9dc5 (diff)
parent978c979608e7c2abc738ff8e3ac4f472dd893316 (diff)
downloadtcl-6be516b44a873f6ced4a54f374e2eb4be624a6ce.zip
tcl-6be516b44a873f6ced4a54f374e2eb4be624a6ce.tar.gz
tcl-6be516b44a873f6ced4a54f374e2eb4be624a6ce.tar.bz2
Merge trunk
Diffstat (limited to 'generic/tclOOInfo.c')
-rw-r--r--generic/tclOOInfo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclOOInfo.c b/generic/tclOOInfo.c
index 7435fff..be329d7 100644
--- a/generic/tclOOInfo.c
+++ b/generic/tclOOInfo.c
@@ -125,10 +125,8 @@ TclOOInitInfo(
infoCmd = Tcl_FindCommand(interp, "info", NULL, TCL_GLOBAL_ONLY);
if (infoCmd) {
Tcl_GetEnsembleMappingDict(NULL, infoCmd, &mapDict);
- Tcl_DictObjPut(NULL, mapDict, Tcl_NewStringObj("object", -1),
- Tcl_NewStringObj("::oo::InfoObject", -1));
- Tcl_DictObjPut(NULL, mapDict, Tcl_NewStringObj("class", -1),
- Tcl_NewStringObj("::oo::InfoClass", -1));
+ TclDictPutString(NULL, mapDict, "object", "::oo::InfoObject");
+ TclDictPutString(NULL, mapDict, "class", "::oo::InfoClass");
Tcl_SetEnsembleMappingDict(interp, infoCmd, mapDict);
}
}