Fix incorrect usage of nsCOMPtr where nsCOMPtr::operator& was used instead of getter_AddRefs. b=59414 r=disttsc@bart.nl sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@83442 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1103,11 +1103,8 @@ PRBool nsHTMLContentSinkStream::IsBlockLevel(eHTMLTags aTag)
|
||||
{
|
||||
if (!mDTD)
|
||||
{
|
||||
nsCOMPtr<nsIParser> parser;
|
||||
nsresult rv = nsComponentManager::CreateInstance(kCParserCID,
|
||||
nsnull,
|
||||
kCParserIID,
|
||||
(void **)&parser);
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIParser> parser( do_CreateInstance(kCParserCID, &rv) );
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!parser) return NS_ERROR_FAILURE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user