Bug 1060696 - Remove NS_INIT_ISUPPORTS. r=froydnj
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Fri, 16 Jan 2015 07:34:46 +0200
changeset 224143 93828c511189f52e6bf8e4240d6d1d5968d390f3
parent 224142 f71da619c38ae46a6277d1978c239e1be91cff2a
child 224144 244f30e89f71adb00742de576c0eba831262392e
push id54136
push userbirunthan@mohanathas.com
push dateFri, 16 Jan 2015 07:48:48 +0000
treeherdermozilla-inbound@244f30e89f71 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1060696
milestone38.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 1060696 - Remove NS_INIT_ISUPPORTS. r=froydnj
security/manager/ssl/src/nsProtectedAuthThread.cpp
xpcom/glue/nsISupportsImpl.h
--- a/security/manager/ssl/src/nsProtectedAuthThread.cpp
+++ b/security/manager/ssl/src/nsProtectedAuthThread.cpp
@@ -28,17 +28,16 @@ static void nsProtectedAuthThreadRunner(
 nsProtectedAuthThread::nsProtectedAuthThread()
 : mMutex("nsProtectedAuthThread.mMutex")
 , mIAmRunning(false)
 , mLoginReady(false)
 , mThreadHandle(nullptr)
 , mSlot(0)
 , mLoginResult(SECFailure)
 {
-    NS_INIT_ISUPPORTS();
 }
 
 nsProtectedAuthThread::~nsProtectedAuthThread()
 {
 }
 
 NS_IMETHODIMP nsProtectedAuthThread::Login(nsIObserver *aObserver)
 {
--- a/xpcom/glue/nsISupportsImpl.h
+++ b/xpcom/glue/nsISupportsImpl.h
@@ -492,23 +492,16 @@ protected:                              
   nsCycleCollectingAutoRefCnt mRefCnt;                                        \
   NS_DECL_OWNINGTHREAD                                                        \
 public:
 
 
 ///////////////////////////////////////////////////////////////////////////////
 
 /**
- * Previously used to initialize the reference count, but no longer needed.
- *
- * DEPRECATED.
- */
-#define NS_INIT_ISUPPORTS() ((void)0)
-
-/**
  * Use this macro to declare and implement the AddRef & Release methods for a
  * given non-XPCOM <i>_class</i>.
  *
  * @param _class The name of the class implementing the method
  * @param optional MOZ_OVERRIDE Mark the AddRef & Release methods as overrides.
  */
 #define NS_INLINE_DECL_REFCOUNTING(_class, ...)                               \
 public:                                                                       \