Bug 267598 - Fix some comments and arg names in nsISupportsUtils.h. r=bsmedberg
authorCykesiopka <cykesiopka@hotmail.com>
Wed, 27 Feb 2013 09:23:54 -0500
changeset 123155 e1cab7e106c4fc167b7620ad521534b1d3340ce7
parent 123154 ef0c622197dde770537e329973c67714d8c04dbb
child 123156 41458ff35cedd4cec9dd0f7ce11fa0eb48a90cae
push id24373
push userryanvm@gmail.com
push dateThu, 28 Feb 2013 01:36:21 +0000
treeherdermozilla-central@8cb9d6981978 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs267598
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 267598 - Fix some comments and arg names in nsISupportsUtils.h. r=bsmedberg
xpcom/glue/nsISupportsUtils.h
--- a/xpcom/glue/nsISupportsUtils.h
+++ b/xpcom/glue/nsISupportsUtils.h
@@ -83,34 +83,34 @@ ns_if_addref( T expr )
  */
 #define NS_RELEASE(_ptr)                                                      \
   PR_BEGIN_MACRO                                                              \
     (_ptr)->Release();                                                        \
     (_ptr) = 0;                                                               \
   PR_END_MACRO
 
 /**
- * Macro for releasing a reference to an interface.
- * @param _ptr The interface pointer.
+ * Macro for releasing a reference to this interface.
  */
 #define NS_RELEASE_THIS() \
     Release()
 
 /**
  * Macro for releasing a reference to an interface, except that this
  * macro preserves the return value from the underlying Release call.
  * The interface pointer argument will only be NULLed if the reference count
  * goes to zero.
  *
  * @param _ptr The interface pointer.
+ * @param _rc  The reference count.
  */
-#define NS_RELEASE2(_ptr,_rv)                                                 \
+#define NS_RELEASE2(_ptr, _rc)                                                \
   PR_BEGIN_MACRO                                                              \
-    _rv = (_ptr)->Release();                                                  \
-    if (0 == (_rv)) (_ptr) = 0;                                               \
+    _rc = (_ptr)->Release();                                                  \
+    if (0 == (_rc)) (_ptr) = 0;                                               \
   PR_END_MACRO
 
 /**
  * Macro for releasing a reference to an interface that checks for NULL;
  * @param _ptr The interface pointer.
  */
 #define NS_IF_RELEASE(_ptr)                                                   \
   PR_BEGIN_MACRO                                                              \