summaryrefslogtreecommitdiffstats
path: root/generic/tclOOBasic.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-03 14:52:55 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-03 14:52:55 (GMT)
commit08bec1c1e8e4aae5cb45d4c68a2ab5d9bd73470e (patch)
tree84118ecaa9257d1f2e99228c0ae52bc98d574b97 /generic/tclOOBasic.c
parenta70bdc9ec1f2e2009feff998bb7ceb63dd28cb90 (diff)
downloadtcl-08bec1c1e8e4aae5cb45d4c68a2ab5d9bd73470e.zip
tcl-08bec1c1e8e4aae5cb45d4c68a2ab5d9bd73470e.tar.gz
tcl-08bec1c1e8e4aae5cb45d4c68a2ab5d9bd73470e.tar.bz2
Factor out a number of common patterns of use of Tcl_DStringAppend.
Diffstat (limited to 'generic/tclOOBasic.c')
-rw-r--r--generic/tclOOBasic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclOOBasic.c b/generic/tclOOBasic.c
index 5e983fc..35ad1eb 100644
--- a/generic/tclOOBasic.c
+++ b/generic/tclOOBasic.c
@@ -1190,7 +1190,7 @@ TclOOCopyObjectCmd(
Tcl_DStringAppend(&buffer,
iPtr->varFramePtr->nsPtr->fullName, -1);
}
- Tcl_DStringAppend(&buffer, "::", 2);
+ TclDStringAppendLiteral(&buffer, "::");
Tcl_DStringAppend(&buffer, name, -1);
name = Tcl_DStringValue(&buffer);
}