fix warning

This commit is contained in:
sspitzer%netscape.com 1999-07-15 06:58:53 +00:00
parent d501ff5a70
commit 17366d87c0
3 changed files with 4 additions and 7 deletions

View File

@ -80,6 +80,7 @@
#include "nsIDOMRange.h"
#include "nsIEnumerator.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIDOMTextIID, NS_IDOMTEXT_IID);
static NS_DEFINE_IID(kIDOMCommentIID, NS_IDOMCOMMENT_IID);
static NS_DEFINE_IID(kIDocumentIID, NS_IDOCUMENT_IID);
@ -219,7 +220,6 @@ nsDOMStyleSheetCollection::QueryInterface(REFNSIID aIID, void** aInstancePtrResu
return NS_ERROR_NULL_POINTER;
}
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (aIID.Equals(kIDOMStyleSheetCollectionIID)) {
nsIDOMStyleSheetCollection *tmp = this;
*aInstancePtrResult = (void*) tmp;
@ -417,7 +417,6 @@ NS_IMPL_RELEASE(nsDOMImplementation)
nsresult
nsDOMImplementation::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}

View File

@ -80,6 +80,7 @@
#include "nsIDOMRange.h"
#include "nsIEnumerator.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIDOMTextIID, NS_IDOMTEXT_IID);
static NS_DEFINE_IID(kIDOMCommentIID, NS_IDOMCOMMENT_IID);
static NS_DEFINE_IID(kIDocumentIID, NS_IDOCUMENT_IID);
@ -219,7 +220,6 @@ nsDOMStyleSheetCollection::QueryInterface(REFNSIID aIID, void** aInstancePtrResu
return NS_ERROR_NULL_POINTER;
}
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (aIID.Equals(kIDOMStyleSheetCollectionIID)) {
nsIDOMStyleSheetCollection *tmp = this;
*aInstancePtrResult = (void*) tmp;
@ -417,7 +417,6 @@ NS_IMPL_RELEASE(nsDOMImplementation)
nsresult
nsDOMImplementation::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
if (nsnull == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}

View File

@ -30,8 +30,8 @@ extern "C" {
}
NS_DEFINE_IID(kIInputStreamIID, NS_IINPUTSTREAM_IID);
NS_DEFINE_IID(kIConnectionInfoIID, NS_ICONNECTIONINFO_IID);
static NS_DEFINE_IID(kIInputStreamIID, NS_IINPUTSTREAM_IID);
static NS_DEFINE_IID(kIConnectionInfoIID, NS_ICONNECTIONINFO_IID);
#define BUFFER_BLOCK_SIZE 8192
@ -146,7 +146,6 @@ nsresult nsNetlibStream::QueryInterface(const nsIID &aIID, void** aInstancePtr)
return NS_ERROR_NULL_POINTER;
}
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIInputStreamIID, NS_IINPUTSTREAM_IID);
static NS_DEFINE_IID(kIOutputStreamIID, NS_IOUTPUTSTREAM_IID);
if (aIID.Equals(kIInputStreamIID)) {
*aInstancePtr = (void*) ((nsIInputStream*)this);