Speed up cookie file handling by avoiding uselss string malloc/free's

This commit is contained in:
kipp%netscape.com 1999-09-03 03:50:06 +00:00
parent 86e12ae621
commit 592de366b8

View File

@ -1943,7 +1943,7 @@ cookie_LoadCookies() {
delete buffer;
continue;
}
nsString host, isDomain, path, xxx, expires, name, cookie;
nsAutoString host, isDomain, path, xxx, expires, name, cookie;
buffer->Mid(host, hostIndex, isDomainIndex-hostIndex-1);
buffer->Mid(isDomain, isDomainIndex, pathIndex-isDomainIndex-1);
buffer->Mid(path, pathIndex, xxxIndex-pathIndex-1);