From b66961452f85d2accc033ea55d9a63caa4d33c2d Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Wed, 10 Nov 1999 07:03:50 +0000 Subject: [PATCH] Changed nsComponentManager::CreateInstance to use new nsCOMPtr do_CreateInstance. git-svn-id: svn://10.0.0.236/trunk@53076 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShellBase.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mozilla/docshell/base/nsDocShellBase.cpp b/mozilla/docshell/base/nsDocShellBase.cpp index 643dd711cf1..7d1545dc390 100644 --- a/mozilla/docshell/base/nsDocShellBase.cpp +++ b/mozilla/docshell/base/nsDocShellBase.cpp @@ -78,10 +78,8 @@ NS_IMETHODIMP nsDocShellBase::LoadURIVia(nsIURI* aUri, { NS_ENSURE_ARG(aUri); - nsCOMPtr uriLoader; - NS_ENSURE_SUCCESS(nsComponentManager::CreateInstance(NS_URI_LOADER_PROGID, - nsnull, NS_GET_IID(nsIURILoader), getter_AddRefs(uriLoader)), - NS_ERROR_FAILURE); + nsCOMPtr uriLoader = do_CreateInstance(NS_URI_LOADER_PROGID); + NS_ENSURE_TRUE(uriLoader, NS_ERROR_FAILURE); NS_ENSURE_SUCCESS(EnsureContentListener(), NS_ERROR_FAILURE); mContentListener->SetPresContext(aPresContext);