For some reason, javadom wouldn't compile today unless I changed

nativeDOMProxyListener.cpp nativeDOMProxyListener.h

To use NS_IMETHODIMP, NS_IMETHOD instead of virtual nsresult.
This commit is contained in:
edburns%acm.org 2001-05-10 20:46:09 +00:00
Родитель 730fc5a9da
Коммит 54ea58fffc
2 изменённых файлов: 5 добавлений и 5 удалений

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

@ -59,7 +59,7 @@ NativeDOMProxyListener::~NativeDOMProxyListener()
}
}
nsresult NativeDOMProxyListener::HandleEvent(nsIDOMEvent* aEvent)
NS_IMETHODIMP NativeDOMProxyListener::HandleEvent(nsIDOMEvent* aEvent)
{
jobject jevent;
JNIEnv *env;
@ -92,7 +92,7 @@ nsresult NativeDOMProxyListener::HandleEvent(nsIDOMEvent* aEvent)
return NS_OK;
}
nsresult NativeDOMProxyListener::QueryInterface(const nsIID &aIID, void **aResult)
NS_IMETHODIMP NativeDOMProxyListener::QueryInterface(const nsIID &aIID, void **aResult)
{
if (aResult == NULL) {
return NS_ERROR_NULL_POINTER;
@ -115,12 +115,12 @@ nsresult NativeDOMProxyListener::QueryInterface(const nsIID &aIID, void **aResul
return NS_OK;
}
nsrefcnt NativeDOMProxyListener::AddRef()
NS_IMETHODIMP_(nsrefcnt) NativeDOMProxyListener::AddRef()
{
return mRefCnt++;
}
nsrefcnt NativeDOMProxyListener::Release()
NS_IMETHODIMP_(nsrefcnt) NativeDOMProxyListener::Release()
{
if (--mRefCnt == 0) {
delete this;

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

@ -17,7 +17,7 @@ class NativeDOMProxyListener: public nsIDOMEventListener{
NativeDOMProxyListener(JNIEnv *env, jobject jlistener);
virtual nsresult HandleEvent(nsIDOMEvent* aEvent);
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
NS_IMETHOD QueryInterface(const nsIID &aIID, void **aResult);
NS_IMETHOD_(nsrefcnt) AddRef(void);