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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user