зеркало из https://github.com/mozilla/gecko-dev.git
Bug 267598 - Fix some comments and arg names in nsISupportsUtils.h. r=bsmedberg
This commit is contained in:
Родитель
042e4e20b4
Коммит
a6f26d5dad
|
@ -88,8 +88,7 @@ ns_if_addref( T expr )
|
||||||
PR_END_MACRO
|
PR_END_MACRO
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Macro for releasing a reference to an interface.
|
* Macro for releasing a reference to this interface.
|
||||||
* @param _ptr The interface pointer.
|
|
||||||
*/
|
*/
|
||||||
#define NS_RELEASE_THIS() \
|
#define NS_RELEASE_THIS() \
|
||||||
Release()
|
Release()
|
||||||
|
@ -101,11 +100,12 @@ ns_if_addref( T expr )
|
||||||
* goes to zero.
|
* goes to zero.
|
||||||
*
|
*
|
||||||
* @param _ptr The interface pointer.
|
* @param _ptr The interface pointer.
|
||||||
|
* @param _rc The reference count.
|
||||||
*/
|
*/
|
||||||
#define NS_RELEASE2(_ptr,_rv) \
|
#define NS_RELEASE2(_ptr, _rc) \
|
||||||
PR_BEGIN_MACRO \
|
PR_BEGIN_MACRO \
|
||||||
_rv = (_ptr)->Release(); \
|
_rc = (_ptr)->Release(); \
|
||||||
if (0 == (_rv)) (_ptr) = 0; \
|
if (0 == (_rc)) (_ptr) = 0; \
|
||||||
PR_END_MACRO
|
PR_END_MACRO
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче