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:
Родитель
730fc5a9da
Коммит
54ea58fffc
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче