From 3766ec40485c4a3e8131fbf7ad02765ac972950c Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 30 Jul 1998 02:49:13 +0000 Subject: [PATCH] Changed nsString to nsAutoString to eliminate heap allocation --- layout/html/table/src/nsTableCell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/html/table/src/nsTableCell.cpp b/layout/html/table/src/nsTableCell.cpp index 880a2e6a57b5..6ddf06d655f3 100644 --- a/layout/html/table/src/nsTableCell.cpp +++ b/layout/html/table/src/nsTableCell.cpp @@ -88,7 +88,7 @@ void nsTableCell::Init() // col style context into one, unless there is a unique HTML attribute set char out[40]; PR_snprintf(out, 40, "%d", HACKcounter); - const nsString value(out); + const nsAutoString value(out); if (nsnull==HACKattribute) HACKattribute = NS_NewAtom("Steve's unbelievable hack attribute"); SetAttribute(HACKattribute, value);