AddRef/Release return a refcount, not an nsresult

git-svn-id: svn://10.0.0.236/trunk@156780 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2004-05-22 20:01:11 +00:00
parent e0992afdd6
commit 9fa34f5763
2 changed files with 4 additions and 4 deletions

View File

@@ -235,8 +235,8 @@ private:
*/
void PreDestroy(nsIPresContext* aPresContext);
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) AddRef() { return 1; }
NS_IMETHOD_(nsrefcnt) Release() { return 1; }
PRBool mDidPreDestroy; // has PreDestroy been called
};

View File

@@ -235,8 +235,8 @@ private:
*/
void PreDestroy(nsIPresContext* aPresContext);
NS_IMETHOD_(nsrefcnt) AddRef() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) Release() { return NS_OK; }
NS_IMETHOD_(nsrefcnt) AddRef() { return 1; }
NS_IMETHOD_(nsrefcnt) Release() { return 1; }
PRBool mDidPreDestroy; // has PreDestroy been called
};