Removed temporary QI to nsIContentViewerContainer as nsISupports is what is needed on the parameter anyway. r=pavlov

This commit is contained in:
tbogard%aol.net 1999-11-15 07:47:01 +00:00
Родитель 1fd50f82ff
Коммит 2611ac719c
2 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -452,13 +452,11 @@ nsDocLoaderImpl::CreateContentViewer(const char *aCommand,
return rv;
}
nsCOMPtr<nsIContentViewerContainer> container(do_QueryInterface(aContainer));
// Now create an instance of the content viewer
rv = factory->CreateInstance(aCommand,
channel, mLoadGroup,
aContentType,
container,
aContainer,
aExtraInfo, aDocListenerResult,
aDocViewerResult);
NS_RELEASE(factory);

Просмотреть файл

@ -452,13 +452,11 @@ nsDocLoaderImpl::CreateContentViewer(const char *aCommand,
return rv;
}
nsCOMPtr<nsIContentViewerContainer> container(do_QueryInterface(aContainer));
// Now create an instance of the content viewer
rv = factory->CreateInstance(aCommand,
channel, mLoadGroup,
aContentType,
container,
aContainer,
aExtraInfo, aDocListenerResult,
aDocViewerResult);
NS_RELEASE(factory);