Browse Source

pyxpcom: update signatures for AddRef and Release

toddw 10 years ago
parent
commit
ab5da3c22a
2 changed files with 5 additions and 5 deletions
  1. 1 1
      xpcom/src/PyGBase.cpp
  2. 4 4
      xpcom/src/PyXPCOM.h

+ 1 - 1
xpcom/src/PyGBase.cpp

@@ -252,7 +252,7 @@ PyG_Base::~PyG_Base()
 
 NS_IMPL_ADDREF(PyG_Base)
 
-nsrefcnt
+MozExternalRefCountType
 PyG_Base::Release(void)
 {
 	nsrefcnt cnt;

+ 4 - 4
xpcom/src/PyXPCOM.h

@@ -687,8 +687,8 @@ friend class PyG_Base;
 public:
 	NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr)
 		{return PyG_Base::QueryInterface(aIID, aInstancePtr);}
-	NS_IMETHOD_(nsrefcnt) AddRef(void) {return PyG_Base::AddRef();}
-	NS_IMETHOD_(nsrefcnt) Release(void) {return PyG_Base::Release();}
+	NS_IMETHOD_(MozExternalRefCountType) AddRef(void) {return PyG_Base::AddRef();}
+	NS_IMETHOD_(MozExternalRefCountType) Release(void) {return PyG_Base::Release();}
 
 	// call this method and return result
 	NS_IMETHOD CallMethod(PRUint16 methodIndex,
@@ -710,8 +710,8 @@ private:
 #define PYGATEWAY_BASE_SUPPORT(INTERFACE, GATEWAY_BASE)                    \
 	NS_IMETHOD QueryInterface(REFNSIID aIID, void** aInstancePtr)      \
 		{return PyG_Base::QueryInterface(aIID, aInstancePtr);}     \
-	NS_IMETHOD_(nsrefcnt) AddRef(void) {return PyG_Base::AddRef();}    \
-	NS_IMETHOD_(nsrefcnt) Release(void) {return PyG_Base::Release();}  \
+	NS_IMETHOD_(MozExternalRefCountType) AddRef(void) {return PyG_Base::AddRef();}    \
+	NS_IMETHOD_(MozExternalRefCountType) Release(void) {return PyG_Base::Release();}  \
 	virtual void *ThisAsIID(const nsIID &iid) {                        \
 		if (iid.Equals(NS_GET_IID(INTERFACE))) return (INTERFACE *)this; \
 		return GATEWAY_BASE::ThisAsIID(iid);                       \