bug 408148. use nsAutoTArray rather than nsTArray in nsXBLService::GetBinding. r/sr=sicking
authorpavlov@pavlov.net
Wed, 12 Dec 2007 20:17:14 -0800
changeset 8996 fd4dae82db6a5ac286ce232d5ee07db0d3dba0ab
parent 8995 1048faf2c62cef391998fd0e37def4bca21b96eb
child 8997 b20b7b63b5eb290ce6e6fca2146bb32a8187a59a
push idunknown
push userunknown
push dateunknown
bugs408148
milestone1.9b3pre
bug 408148. use nsAutoTArray rather than nsTArray in nsXBLService::GetBinding. r/sr=sicking
content/xbl/src/nsXBLService.cpp
--- a/content/xbl/src/nsXBLService.cpp
+++ b/content/xbl/src/nsXBLService.cpp
@@ -723,17 +723,17 @@ NS_IMETHODIMP nsXBLService::BindingReady
 }
 
 nsresult
 nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI, 
                          PRBool aPeekOnly, nsIPrincipal* aOriginPrincipal,
                          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);
 }
 
 nsresult
 nsXBLService::GetBinding(nsIContent* aBoundElement, nsIURI* aURI, 
                          PRBool aPeekOnly, nsIPrincipal* aOriginPrincipal,
                          PRBool* aIsReady, nsXBLBinding** aResult,