Changed nsString to nsAutoString to eliminate heap allocation

This commit is contained in:
troy%netscape.com 1998-07-30 02:49:13 +00:00
Родитель c78b10e6bc
Коммит 3766ec4048
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);