change the interface and pass nsISupport* for document instead of PRInt32 so we won't drop

data on 64-bits machine. r=harishd
This commit is contained in:
ftang%netscape.com 2000-03-23 00:53:53 +00:00
Родитель 97c62dce70
Коммит 979a0eb034
3 изменённых файлов: 4 добавлений и 5 удалений

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

@ -51,8 +51,7 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell(
(nsISupports**)&docLoader)))
goto done;
// temp change to (PRUint32) cast untill we change the GetContentViewerContainer interface
if(NS_FAILED(rv =docLoader->GetContentViewerContainer((PRUint32)aDocumentID, &cvc)))
if(NS_FAILED(rv =docLoader->GetContentViewerContainer(aDocumentID, &cvc)))
goto done;
/* sspitzer: this was necessary to get printing of mail to work (sort of)

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

@ -314,10 +314,10 @@ nsDocLoaderImpl::GetLoadGroup(nsILoadGroup** aResult)
}
NS_IMETHODIMP
nsDocLoaderImpl::GetContentViewerContainer(PRUint32 aDocumentID,
nsDocLoaderImpl::GetContentViewerContainer(nsISupports* aDocumentID,
nsIContentViewerContainer** aResult)
{
nsISupports* base = (nsISupports*) aDocumentID;
nsISupports* base = aDocumentID;
nsIDocument* doc;
nsresult rv;

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

@ -42,7 +42,7 @@ interface nsIDocumentLoader : nsISupports
void removeObserver(in nsIDocumentLoaderObserver aObserver);
attribute nsISupports container;
[noscript] void getContentViewerContainer(in unsigned long aDocumentID, out nsIContentViewerContainer aResult);
[noscript] void getContentViewerContainer(in nsISupports aDocumentID, out nsIContentViewerContainer aResult);
nsILoadGroup getLoadGroup();
void destroy();