fixing build bustage and renameing variable name.

This commit is contained in:
dougt%netscape.com 2001-03-08 01:24:57 +00:00
Родитель 23c4db54c4
Коммит f5cef58e07
2 изменённых файлов: 6 добавлений и 8 удалений

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

@ -39,7 +39,6 @@
#include "nsIPref.h" #include "nsIPref.h"
#include "nsIProxyAutoConfig.h" #include "nsIProxyAutoConfig.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsIFileChannel.h"
#include "nsIInputStream.h" #include "nsIInputStream.h"
#include "nsIIOService.h" #include "nsIIOService.h"
#include "nsIURL.h" #include "nsIURL.h"
@ -1384,10 +1383,10 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request,
{ {
char* urlString; char* urlString;
nsCOMPtr<nsIFile> localFile; nsCOMPtr<nsIFile> localFile;
nsCOMPtr<nsIStreamAsFile> fileChannel = do_QueryInterface(channel); nsCOMPtr<nsIStreamAsFile> streamAsFile = do_QueryInterface(channel);
if (fileChannel) if (streamAsFile)
rv = fileChannel->GetFile(getter_AddRefs(localFile)); rv = streamAsFile->GetFile(getter_AddRefs(localFile));
if (NS_SUCCEEDED(rv) && localFile) if (NS_SUCCEEDED(rv) && localFile)
{ {

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

@ -39,7 +39,6 @@
#include "nsIPref.h" #include "nsIPref.h"
#include "nsIProxyAutoConfig.h" #include "nsIProxyAutoConfig.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsIFileChannel.h"
#include "nsIInputStream.h" #include "nsIInputStream.h"
#include "nsIIOService.h" #include "nsIIOService.h"
#include "nsIURL.h" #include "nsIURL.h"
@ -1384,10 +1383,10 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request,
{ {
char* urlString; char* urlString;
nsCOMPtr<nsIFile> localFile; nsCOMPtr<nsIFile> localFile;
nsCOMPtr<nsIStreamAsFile> fileChannel = do_QueryInterface(channel); nsCOMPtr<nsIStreamAsFile> streamAsFile = do_QueryInterface(channel);
if (fileChannel) if (streamAsFile)
rv = fileChannel->GetFile(getter_AddRefs(localFile)); rv = streamAsFile->GetFile(getter_AddRefs(localFile));
if (NS_SUCCEEDED(rv) && localFile) if (NS_SUCCEEDED(rv) && localFile)
{ {