Get rid of those unix warnings...

This commit is contained in:
rpotts%netscape.com 1998-07-24 21:03:33 +00:00
Родитель 66ec1412c1
Коммит 87b4f3728e
4 изменённых файлов: 24 добавлений и 12 удалений

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

@ -925,8 +925,14 @@ nsWebShell::OnLinkClick(nsIFrame* aFrame,
const nsString& aTargetSpec,
nsIPostData* aPostData)
{
new OnLinkClickEvent(this, aURLSpec, aTargetSpec, aPostData);
return NS_OK;
OnLinkClickEvent* ev;
nsresult rv = NS_OK;
ev = new OnLinkClickEvent(this, aURLSpec, aTargetSpec, aPostData);
if (nsnull == ev) {
rv = NS_ERROR_OUT_OF_MEMORY;
}
return rv;
}
// Find the web shell in the entire tree that we can reach that the
@ -1085,7 +1091,7 @@ class nsWebShellFactory : public nsIFactory
{
public:
nsWebShellFactory();
~nsWebShellFactory();
virtual ~nsWebShellFactory();
// nsISupports methods
NS_IMETHOD QueryInterface(const nsIID &aIID, void **aResult);

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

@ -101,7 +101,7 @@ public:
NS_IMETHOD_(PRBool) PromptPassword(const nsString &aText,
nsString &aPassword);
PRInt32 GetStatus(void) { return mStatus; }
nsresult GetStatus(void) { return mStatus; }
protected:
virtual ~nsDocumentBindInfo();
@ -116,7 +116,7 @@ protected:
nsIStreamListener* m_NextStream;
nsDocLoaderImpl* m_DocLoader;
PRInt32 mStatus;
nsresult mStatus;
};
@ -579,7 +579,7 @@ nsDocumentBindInfo::nsDocumentBindInfo(nsDocLoaderImpl* aDocLoader,
m_ExtraInfo = aExtraInfo;
NS_IF_ADDREF(m_ExtraInfo);
mStatus = NS_BINDING_SUCCEEDED;
mStatus = NS_OK;
}
nsDocumentBindInfo::~nsDocumentBindInfo()

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

@ -101,7 +101,7 @@ public:
NS_IMETHOD_(PRBool) PromptPassword(const nsString &aText,
nsString &aPassword);
PRInt32 GetStatus(void) { return mStatus; }
nsresult GetStatus(void) { return mStatus; }
protected:
virtual ~nsDocumentBindInfo();
@ -116,7 +116,7 @@ protected:
nsIStreamListener* m_NextStream;
nsDocLoaderImpl* m_DocLoader;
PRInt32 mStatus;
nsresult mStatus;
};
@ -579,7 +579,7 @@ nsDocumentBindInfo::nsDocumentBindInfo(nsDocLoaderImpl* aDocLoader,
m_ExtraInfo = aExtraInfo;
NS_IF_ADDREF(m_ExtraInfo);
mStatus = NS_BINDING_SUCCEEDED;
mStatus = NS_OK;
}
nsDocumentBindInfo::~nsDocumentBindInfo()

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

@ -925,8 +925,14 @@ nsWebShell::OnLinkClick(nsIFrame* aFrame,
const nsString& aTargetSpec,
nsIPostData* aPostData)
{
new OnLinkClickEvent(this, aURLSpec, aTargetSpec, aPostData);
return NS_OK;
OnLinkClickEvent* ev;
nsresult rv = NS_OK;
ev = new OnLinkClickEvent(this, aURLSpec, aTargetSpec, aPostData);
if (nsnull == ev) {
rv = NS_ERROR_OUT_OF_MEMORY;
}
return rv;
}
// Find the web shell in the entire tree that we can reach that the
@ -1085,7 +1091,7 @@ class nsWebShellFactory : public nsIFactory
{
public:
nsWebShellFactory();
~nsWebShellFactory();
virtual ~nsWebShellFactory();
// nsISupports methods
NS_IMETHOD QueryInterface(const nsIID &aIID, void **aResult);