Changed nsComponentManager::CreateInstance to use new nsCOMPtr do_CreateInstance.

git-svn-id: svn://10.0.0.236/trunk@53076 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
1999-11-10 07:03:50 +00:00
parent 40bcf7296c
commit b66961452f

View File

@@ -78,10 +78,8 @@ NS_IMETHODIMP nsDocShellBase::LoadURIVia(nsIURI* aUri,
{
NS_ENSURE_ARG(aUri);
nsCOMPtr<nsIURILoader> uriLoader;
NS_ENSURE_SUCCESS(nsComponentManager::CreateInstance(NS_URI_LOADER_PROGID,
nsnull, NS_GET_IID(nsIURILoader), getter_AddRefs(uriLoader)),
NS_ERROR_FAILURE);
nsCOMPtr<nsIURILoader> uriLoader = do_CreateInstance(NS_URI_LOADER_PROGID);
NS_ENSURE_TRUE(uriLoader, NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(EnsureContentListener(), NS_ERROR_FAILURE);
mContentListener->SetPresContext(aPresContext);