mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
fixing build bustage and renameing variable name.
This commit is contained in:
parent
e3bbe61b93
commit
460288a5fe
@ -39,7 +39,6 @@
|
||||
#include "nsIPref.h"
|
||||
#include "nsIProxyAutoConfig.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsIFileChannel.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIURL.h"
|
||||
@ -1384,10 +1383,10 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request,
|
||||
{
|
||||
char* urlString;
|
||||
nsCOMPtr<nsIFile> localFile;
|
||||
nsCOMPtr<nsIStreamAsFile> fileChannel = do_QueryInterface(channel);
|
||||
nsCOMPtr<nsIStreamAsFile> streamAsFile = do_QueryInterface(channel);
|
||||
|
||||
if (fileChannel)
|
||||
rv = fileChannel->GetFile(getter_AddRefs(localFile));
|
||||
if (streamAsFile)
|
||||
rv = streamAsFile->GetFile(getter_AddRefs(localFile));
|
||||
|
||||
if (NS_SUCCEEDED(rv) && localFile)
|
||||
{
|
||||
|
@ -39,7 +39,6 @@
|
||||
#include "nsIPref.h"
|
||||
#include "nsIProxyAutoConfig.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsIFileChannel.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIURL.h"
|
||||
@ -1384,10 +1383,10 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnStopRequest(nsIRequest *request,
|
||||
{
|
||||
char* urlString;
|
||||
nsCOMPtr<nsIFile> localFile;
|
||||
nsCOMPtr<nsIStreamAsFile> fileChannel = do_QueryInterface(channel);
|
||||
nsCOMPtr<nsIStreamAsFile> streamAsFile = do_QueryInterface(channel);
|
||||
|
||||
if (fileChannel)
|
||||
rv = fileChannel->GetFile(getter_AddRefs(localFile));
|
||||
if (streamAsFile)
|
||||
rv = streamAsFile->GetFile(getter_AddRefs(localFile));
|
||||
|
||||
if (NS_SUCCEEDED(rv) && localFile)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user