mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Speed up cookie file handling by avoiding uselss string malloc/free's
This commit is contained in:
parent
86e12ae621
commit
592de366b8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user