bug 408148. use nsAutoTArray rather than nsTArray in nsXBLService::GetBinding. r/sr=sicking

This commit is contained in:
pavlov@pavlov.net 2007-12-12 20:17:14 -08:00
parent 849eea950e
commit b117c0d9a6

View File

@ -728,7 +728,7 @@ nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI,
PRBool* aIsReady, nsXBLBinding** aResult)
{
// More than 6 binding URIs are rare, see bug 55070 comment 18.
nsTArray<nsIURI*> uris(6);
nsAutoTArray<nsIURI*, 6> uris;
return GetBinding(aBoundElement, aURI, aPeekOnly, aOriginPrincipal, aIsReady,
aResult, uris);
}