Reduce construction of (expensive) nsAutoString objects at performance hotspots. r=jag sr=waterson b=102756

git-svn-id: svn://10.0.0.236/trunk@105013 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-10-10 05:00:36 +00:00
parent c4b339df8f
commit 1399c2e2d6
2 changed files with 13 additions and 23 deletions

View File

@@ -1908,7 +1908,7 @@ nsDocShell::FindChildWithName(const PRUnichar * aName,
*_retval = nsnull; // if we don't find one, we return NS_OK and a null result
nsAutoString name(aName);
nsDependentString name(aName);
nsXPIDLString childName;
PRInt32 i, n = mChildren.Count();
for (i = 0; i < n; i++) {