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:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user