Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag

This commit is contained in:
dbaron%dbaron.org 2003-01-08 21:07:51 +00:00
parent 23a54bc780
commit 3ea0dc57d4
89 changed files with 9 additions and 138 deletions

View File

@ -410,7 +410,6 @@ NS_IMPL_ISUPPORTS1(nsIWin32LocaleImpl,nsIWin32Locale)
nsIWin32LocaleImpl::nsIWin32LocaleImpl(void)
{
NS_INIT_ISUPPORTS();
}
nsIWin32LocaleImpl::~nsIWin32LocaleImpl(void)

View File

@ -71,7 +71,6 @@ public:
class name : public nsIBreakState { \
NS_DECL_ISUPPORTS \
name (const PRUnichar *aText, PRUint32 aLen) { \
NS_INIT_ISUPPORTS(); \
mText = aText; mLen = aLen; \
mPos = 0; mPriv = 0; mDone = PR_FALSE; \
} ; \

View File

@ -331,7 +331,6 @@ nsJISx4501LineBreaker::nsJISx4501LineBreaker(
const PRUnichar* aNoEnd, PRInt32 aNoEndLen
)
{
NS_INIT_ISUPPORTS();
}
nsJISx4501LineBreaker::~nsJISx4501LineBreaker()
{

View File

@ -45,7 +45,6 @@
#include "nsSampleWordBreaker.h"
nsLWBreakerFImp::nsLWBreakerFImp()
{
NS_INIT_ISUPPORTS();
}
nsLWBreakerFImp::~nsLWBreakerFImp()
{

View File

@ -43,7 +43,6 @@
#include "nsLWBRKDll.h"
nsSampleWordBreaker::nsSampleWordBreaker()
{
NS_INIT_ISUPPORTS();
}
nsSampleWordBreaker::~nsSampleWordBreaker()
{

View File

@ -43,7 +43,6 @@ NS_IMPL_ISUPPORTS1(nsSemanticUnitScanner, nsISemanticUnitScanner)
nsSemanticUnitScanner::nsSemanticUnitScanner() : nsSampleWordBreaker()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@ -56,7 +56,6 @@ NS_IMPL_ISUPPORTS1(nsAcceptLang, nsIAcceptLang)
nsAcceptLang::nsAcceptLang()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@ -95,7 +95,6 @@ nsStringBundle::nsStringBundle(const char* aURLSpec,
mAttemptedLoad(PR_FALSE),
mLoaded(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsresult
@ -375,8 +374,6 @@ NS_IMPL_ISUPPORTS1(nsExtensibleStringBundle, nsIStringBundle)
nsExtensibleStringBundle::nsExtensibleStringBundle()
{
NS_INIT_ISUPPORTS();
mLoaded = PR_FALSE;
}
@ -513,7 +510,6 @@ nsStringBundleService::nsStringBundleService() :
#ifdef DEBUG_tao_
printf("\n++ nsStringBundleService::nsStringBundleService ++\n");
#endif
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(&mBundleCache);
PL_InitArenaPool(&mCacheEntryPool, "srEntries",

View File

@ -55,7 +55,7 @@ public:
URLPropertyElement(nsIPropertyElement *aRealElement, PRUint32 aURLLength) :
mRealElement(aRealElement),
mURLLength(aURLLength)
{ NS_INIT_ISUPPORTS(); }
{ }
virtual ~URLPropertyElement() {}
NS_DECL_ISUPPORTS
@ -123,7 +123,6 @@ public:
mURL.ReplaceSubstring(":", "%3A");
// there is always a # between the url and the real key
mURL.Append('#');
NS_INIT_ISUPPORTS();
}
NS_DECL_ISUPPORTS

View File

@ -58,7 +58,7 @@
class nsStringBundleTextOverride : public nsIStringBundleOverride
{
public:
nsStringBundleTextOverride() { NS_INIT_ISUPPORTS(); }
nsStringBundleTextOverride() { }
virtual ~nsStringBundleTextOverride() {}
nsresult Init();

View File

@ -56,7 +56,6 @@ NS_IMPL_ISUPPORTS1(nsCharsetAlias2, nsICharsetAlias);
//--------------------------------------------------------------
nsCharsetAlias2::nsCharsetAlias2()
{
NS_INIT_ISUPPORTS();
mDelegate = nsnull; // delay the load of mDelegate untill we need it.
}
//--------------------------------------------------------------

View File

@ -78,7 +78,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS2(nsCharsetConverterManager,
nsCharsetConverterManager::nsCharsetConverterManager()
:mDataBundle(NULL), mTitleBundle(NULL)
{
NS_INIT_ISUPPORTS();
}
nsCharsetConverterManager::~nsCharsetConverterManager()

View File

@ -70,7 +70,7 @@ class nsConverterInputStream : nsIConverterInputStream {
mLeftOverBytes(0),
mUnicharDataOffset(0),
mUnicharDataLength(0),
mRecoverFromErrors(PR_FALSE) { NS_INIT_ISUPPORTS(); }
mRecoverFromErrors(PR_FALSE) { }
virtual ~nsConverterInputStream() {}

View File

@ -56,7 +56,6 @@ NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset);
nsPlatformCharset::nsPlatformCharset()
{
NS_INIT_ISUPPORTS();
PR_AtomicIncrement(&gCnt);
}
nsPlatformCharset::~nsPlatformCharset()

View File

@ -41,7 +41,6 @@ NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset);
nsPlatformCharset::nsPlatformCharset()
{
NS_INIT_ISUPPORTS();
PR_AtomicIncrement(&gCnt); // count for gInfo
// XXX We should make the following block critical section

View File

@ -60,7 +60,6 @@ NS_IMPL_ISUPPORTS1(nsScriptableUnicodeConverter, nsIScriptableUnicodeConverter)
nsScriptableUnicodeConverter::nsScriptableUnicodeConverter()
{
NS_INIT_ISUPPORTS();
PR_AtomicIncrement(&gInstanceCount);
}

View File

@ -54,7 +54,6 @@ static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CI
nsTextToSubURI::nsTextToSubURI()
{
NS_INIT_ISUPPORTS();
}
nsTextToSubURI::~nsTextToSubURI()
{

View File

@ -82,7 +82,6 @@ static PRStatus InitLock(void)
nsPlatformCharset::nsPlatformCharset()
{
NS_INIT_ISUPPORTS();
PR_AtomicIncrement(&gCnt);
static PRCallOnceType once;
PR_CallOnce(&once, InitLock);

View File

@ -52,7 +52,6 @@ NS_IMPL_ISUPPORTS1(nsUnicodeDecodeHelper, nsIUnicodeDecodeHelper)
nsUnicodeDecodeHelper::nsUnicodeDecodeHelper()
{
NS_INIT_ISUPPORTS();
}
nsUnicodeDecodeHelper::~nsUnicodeDecodeHelper()

View File

@ -52,7 +52,6 @@ NS_IMPL_ISUPPORTS1(nsUnicodeEncodeHelper, nsIUnicodeEncodeHelper)
nsUnicodeEncodeHelper::nsUnicodeEncodeHelper()
{
NS_INIT_ISUPPORTS();
}
nsUnicodeEncodeHelper::~nsUnicodeEncodeHelper()

View File

@ -67,7 +67,7 @@ public:
/**
* Class constructor.
*/
nsUnicodeToUTF8() {NS_INIT_ISUPPORTS(); mHighSurrogate = 0;};
nsUnicodeToUTF8() {mHighSurrogate = 0;};
NS_IMETHOD FillInfo(PRUint32* aInfo);

View File

@ -57,7 +57,6 @@ NS_IMPL_ISUPPORTS1(nsPlatformCharset, nsIPlatformCharset)
nsPlatformCharset::nsPlatformCharset()
{
NS_TIMELINE_START_TIMER("nsPlatformCharset()");
NS_INIT_ISUPPORTS();
UINT acp = ::GetACP();
PRInt32 acpint = (PRInt32)(acp & 0x00FFFF);

View File

@ -56,7 +56,7 @@ class nsISO2022CNToUnicode : public nsBasicDecoderSupport
public:
nsISO2022CNToUnicode() :
mState(eState_ASCII),
mPlaneID(0) { NS_INIT_ISUPPORTS(); };
mPlaneID(0) { };
virtual ~nsISO2022CNToUnicode() {};

View File

@ -150,7 +150,6 @@ nsUnicodeToX11Johab::nsUnicodeToX11Johab()
l = 0x5f;
v = 0;
t = 0;
NS_INIT_ISUPPORTS();
}
nsUnicodeToX11Johab::~nsUnicodeToX11Johab()

View File

@ -54,7 +54,6 @@ static NS_DEFINE_CID(kUnicodeDecodeHelperCID, NS_UNICODEDECODEHELPER_CID);
nsBasicDecoderSupport::nsBasicDecoderSupport()
{
NS_INIT_ISUPPORTS();
}
nsBasicDecoderSupport::~nsBasicDecoderSupport()
@ -358,7 +357,6 @@ NS_IMETHODIMP nsOneByteDecoderSupport::Reset()
// Class nsBasicEncoder [implementation]
nsBasicEncoder::nsBasicEncoder()
{
NS_INIT_ISUPPORTS();
}
nsBasicEncoder::~nsBasicEncoder()

View File

@ -470,7 +470,6 @@ nsCaseConversionImp2::nsCaseConversionImp2()
gUpperMap = new nsCompressedMap(NS_REINTERPRET_CAST(PRUnichar*, &gToUpper[0]), gToUpperItems);
gLowerMap = new nsCompressedMap(NS_REINTERPRET_CAST(PRUnichar*, &gToLower[0]), gToLowerItems);
}
NS_INIT_ISUPPORTS();
}
nsCaseConversionImp2::~nsCaseConversionImp2()

View File

@ -48,7 +48,6 @@ NS_IMPL_ISUPPORTS1(nsCategoryImp, nsIUGenCategory);
nsCategoryImp::nsCategoryImp()
{
NS_INIT_ISUPPORTS();
}
nsCategoryImp::~nsCategoryImp()

View File

@ -43,7 +43,6 @@
nsCharsOrderIdFormater::nsCharsOrderIdFormater( nsCharsList* aList)
{
NS_INIT_ISUPPORTS();
mList = aList;
mBase = aList->Length();
}
@ -75,7 +74,6 @@ class nsCharsOrderIdFormaterFactory : public nsIFactory {
NS_DECL_ISUPPORTS
public:
nsCharsOrderIdFormaterFactory(const nsCID &aCID) {
NS_INIT_ISUPPORTS();
mCID = aCID;
};
virtual ~nsCharsOrderIdFormaterFactory() {

View File

@ -53,7 +53,6 @@ nsEntityConverter::nsEntityConverter()
: mVersionList(NULL),
mVersionListLength(0)
{
NS_INIT_ISUPPORTS();
}
nsEntityConverter::~nsEntityConverter()

View File

@ -145,7 +145,6 @@ NS_IMPL_ISUPPORTS1(nsHankakuToZenkaku, nsITextTransform)
nsHankakuToZenkaku::nsHankakuToZenkaku()
{
NS_INIT_ISUPPORTS();
}
nsHankakuToZenkaku::~nsHankakuToZenkaku()
{

View File

@ -58,8 +58,6 @@ NS_IMPL_ISUPPORTS1(nsSaveAsCharset, nsISaveAsCharset)
//
nsSaveAsCharset::nsSaveAsCharset()
{
NS_INIT_ISUPPORTS();
mAttribute = attr_htmlTextDefault;
mEntityVersion = 0;
mCharsetListIndex = -1;

View File

@ -53,7 +53,7 @@ static nsICaseConversion *gCaseConv = nsnull;
class nsShutdownObserver : public nsIObserver
{
public:
nsShutdownObserver() { NS_INIT_ISUPPORTS(); }
nsShutdownObserver() { }
virtual ~nsShutdownObserver() {}
NS_DECL_ISUPPORTS

View File

@ -860,7 +860,6 @@ jsdProperty::jsdProperty (JSDContext *aCx, JSDProperty *aProperty) :
{
DEBUG_CREATE ("jsdProperty", gPropertyCount);
mValid = (aCx && aProperty);
NS_INIT_ISUPPORTS();
mLiveListEntry.value = this;
jsds_InsertEphemeral (&gLiveProperties, &mLiveListEntry);
}
@ -966,7 +965,6 @@ jsdScript::jsdScript (JSDContext *aCx, JSDScript *aScript) : mValid(PR_FALSE),
mFirstPC(0)
{
DEBUG_CREATE ("jsdScript", gScriptCount);
NS_INIT_ISUPPORTS();
if (mScript) {
/* copy the script's information now, so we have it later, when it
@ -1457,7 +1455,6 @@ jsdContext::jsdContext (JSDContext *aJSDCx, JSContext *aJSCx,
mJSCx(aJSCx), mISCx(aISCx)
{
DEBUG_CREATE ("jsdContext", gContextCount);
NS_INIT_ISUPPORTS();
mLiveListEntry.value = this;
mLiveListEntry.key = NS_STATIC_CAST (void *, aJSCx);
jsds_InsertEphemeral (&gLiveContexts, &mLiveListEntry);
@ -1627,7 +1624,6 @@ jsdStackFrame::jsdStackFrame (JSDContext *aCx, JSDThreadState *aThreadState,
{
DEBUG_CREATE ("jsdStackFrame", gFrameCount);
mValid = (aCx && aThreadState && aStackFrameInfo);
NS_INIT_ISUPPORTS();
if (mValid) {
mLiveListEntry.key = aStackFrameInfo;
mLiveListEntry.value = this;
@ -1917,7 +1913,6 @@ jsdValue::jsdValue (JSDContext *aCx, JSDValue *aValue) : mValid(PR_TRUE),
mValue(aValue)
{
DEBUG_CREATE ("jsdValue", gValueCount);
NS_INIT_ISUPPORTS();
mLiveListEntry.value = this;
jsds_InsertEphemeral (&gLiveValues, &mLiveListEntry);
}
@ -3210,7 +3205,6 @@ class jsdASObserver : public nsIObserver
jsdASObserver ()
{
NS_INIT_ISUPPORTS();
}
};

View File

@ -71,7 +71,6 @@ class jsdObject : public jsdIObject
jsdObject (JSDContext *aCx, JSDObject *aObject) :
mCx(aCx), mObject(aObject)
{
NS_INIT_ISUPPORTS();
}
static jsdIObject *FromPtr (JSDContext *aCx,
@ -280,7 +279,6 @@ class jsdService : public jsdIDebuggerService
mInterruptHook(0), mScriptHook(0), mThrowHook(0),
mTopLevelHook(0), mFunctionHook(0)
{
NS_INIT_ISUPPORTS();
}
virtual ~jsdService();
@ -329,7 +327,6 @@ class jsdContext : public jsdIContext
/* you'll normally use use FromPtr() instead of directly constructing one */
jsdContext (JSDContext *aCx) : mCx(aCx)
{
NS_INIT_ISUPPORTS();
printf ("++++++ jsdContext\n");
}
@ -371,7 +368,6 @@ class jsdThreadState : public jsdIThreadState
jsdThreadState (JSDContext *aCx, JSDThreadState *aThreadState) :
mCx(aCx), mThreadState(aThreadState)
{
NS_INIT_ISUPPORTS();
}
/* XXX These things are only valid for a short period of time, they reflect

View File

@ -151,7 +151,6 @@ nsCLiveconnectFactory::LockFactory(PRBool aLock)
nsCLiveconnectFactory::nsCLiveconnectFactory(void)
{
NS_INIT_ISUPPORTS();
}
nsCLiveconnectFactory::~nsCLiveconnectFactory()

View File

@ -317,7 +317,6 @@ public:
BackstagePass(nsIPrincipal *prin) :
mPrincipal(prin)
{
NS_INIT_ISUPPORTS();
}
virtual ~BackstagePass() { }
@ -338,7 +337,6 @@ public:
BackstagePass()
{
NS_INIT_ISUPPORTS();
}
virtual ~BackstagePass() { }
@ -384,7 +382,6 @@ mozJSComponentLoader::mozJSComponentLoader()
mGlobals(nsnull),
mInitialized(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
static PRIntn PR_CALLBACK

View File

@ -121,7 +121,6 @@ ExceptionalErrorReporter (JSContext *cx, const char *message,
mozJSSubScriptLoader::mozJSSubScriptLoader() : mSystemPrincipal(nsnull)
{
NS_INIT_ISUPPORTS();
}
mozJSSubScriptLoader::~mozJSSubScriptLoader()

View File

@ -103,7 +103,6 @@ NS_IMPL_ISUPPORTS1(nsXPCSample_ClassA, nsIXPCSample_ClassA)
nsXPCSample_ClassA::nsXPCSample_ClassA(PRInt32 aValue)
: mValue(aValue)
{
NS_INIT_ISUPPORTS();
}
nsXPCSample_ClassA::~nsXPCSample_ClassA()
@ -142,7 +141,6 @@ NS_IMPL_ISUPPORTS1(nsXPCSample_ClassB, nsIXPCSample_ClassB)
nsXPCSample_ClassB::nsXPCSample_ClassB(PRInt32 aValue)
: mValue(aValue)
{
NS_INIT_ISUPPORTS();
}
nsXPCSample_ClassB::~nsXPCSample_ClassB()
@ -181,7 +179,6 @@ NS_IMPL_ISUPPORTS1(nsXPCSample_ClassC, nsIXPCSample_ClassC)
nsXPCSample_ClassC::nsXPCSample_ClassC(PRInt32 aValue)
: mValue(aValue)
{
NS_INIT_ISUPPORTS();
}
nsXPCSample_ClassC::~nsXPCSample_ClassC()
@ -219,7 +216,6 @@ NS_IMPL_ISUPPORTS1(nsXPCSample_HookerUpper, nsIXPCSample_HookerUpper)
nsXPCSample_HookerUpper::nsXPCSample_HookerUpper()
{
NS_INIT_ISUPPORTS();
}
nsXPCSample_HookerUpper::~nsXPCSample_HookerUpper()

View File

@ -670,7 +670,6 @@ NS_IMPL_ISUPPORTS1(FullTrustSecMan, nsIXPCSecurityManager);
FullTrustSecMan::FullTrustSecMan()
{
NS_INIT_ISUPPORTS();
}
NS_IMETHODIMP
@ -741,7 +740,7 @@ public:
NS_DECL_NSIXPCTESTNOISY
NS_DECL_NSIXPCSCRIPTABLE
TestGlobal(){NS_INIT_ISUPPORTS();}
TestGlobal(){}
};
@ -782,7 +781,6 @@ NS_IMPL_ISUPPORTS1(nsXPCFunctionThisTranslator, nsIXPCFunctionThisTranslator)
nsXPCFunctionThisTranslator::nsXPCFunctionThisTranslator()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@ -145,7 +145,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(nsDispatchSupport, nsIDispatchSupport)
nsDispatchSupport::nsDispatchSupport()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@ -55,7 +55,6 @@ nsScriptError::nsScriptError()
mFlags(0),
mCategory(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsScriptError::~nsScriptError() {};

View File

@ -62,8 +62,6 @@ nsXPConnect::nsXPConnect()
mDefaultSecurityManagerFlags(0),
mShuttingDown(JS_FALSE)
{
NS_INIT_ISUPPORTS();
// Ignore the result. If the runtime service is not ready to rumble
// then we'll set this up later as needed.
CreateRuntime();

View File

@ -54,8 +54,6 @@ XPCCallContext::XPCCallContext(XPCContext::LangType callerLanguage,
mDestroyJSContextInDestructor(JS_FALSE),
mCallerLanguage(callerLanguage)
{
NS_INIT_ISUPPORTS();
if(!mXPC)
return;

View File

@ -93,7 +93,6 @@ char * xpc_CheckAccessList(const PRUnichar* wideName, const char* list[])
nsXPCComponents_Interfaces::nsXPCComponents_Interfaces()
{
NS_INIT_ISUPPORTS();
mManager = dont_AddRef(XPTI_GetInterfaceInfoManager());
}
@ -327,7 +326,6 @@ public:
nsXPCComponents_Classes::nsXPCComponents_Classes()
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents_Classes::~nsXPCComponents_Classes()
@ -485,7 +483,6 @@ public:
nsXPCComponents_ClassesByID::nsXPCComponents_ClassesByID()
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents_ClassesByID::~nsXPCComponents_ClassesByID()
@ -662,7 +659,6 @@ public:
nsXPCComponents_Results::nsXPCComponents_Results()
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents_Results::~nsXPCComponents_Results()
@ -797,7 +793,6 @@ private:
nsXPCComponents_ID::nsXPCComponents_ID()
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents_ID::~nsXPCComponents_ID()
@ -927,7 +922,6 @@ private:
nsXPCComponents_Exception::nsXPCComponents_Exception()
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents_Exception::~nsXPCComponents_Exception()
@ -1125,7 +1119,6 @@ nsXPCConstructor::nsXPCConstructor(nsIJSCID* aClassID,
nsIJSIID* aInterfaceID,
const char* aInitializer)
{
NS_INIT_ISUPPORTS();
NS_IF_ADDREF(mClassID = aClassID);
NS_IF_ADDREF(mInterfaceID = aInterfaceID);
mInitializer = aInitializer ?
@ -1291,7 +1284,6 @@ private:
nsXPCComponents_Constructor::nsXPCComponents_Constructor()
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents_Constructor::~nsXPCComponents_Constructor()
@ -1548,7 +1540,6 @@ nsXPCComponents::nsXPCComponents()
mException(nsnull),
mConstructor(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsXPCComponents::~nsXPCComponents()

View File

@ -139,7 +139,6 @@ nsXPCException::nsXPCException()
mInner(nsnull),
mInitialized(PR_FALSE)
{
NS_INIT_ISUPPORTS();
MOZ_COUNT_CTOR(nsXPCException);
}

View File

@ -48,7 +48,6 @@ char nsJSID::gNoString[] = "";
nsJSID::nsJSID()
: mID(GetInvalidIID()), mNumber(gNoString), mName(gNoString)
{
NS_INIT_ISUPPORTS();
};
nsJSID::~nsJSID()
@ -253,7 +252,7 @@ class SharedScriptableHelperForJSIID : public nsIXPCScriptable
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIXPCSCRIPTABLE
SharedScriptableHelperForJSIID() {NS_INIT_ISUPPORTS();}
SharedScriptableHelperForJSIID() {}
};
NS_INTERFACE_MAP_BEGIN(SharedScriptableHelperForJSIID)
@ -396,7 +395,6 @@ NS_IMPL_CI_INTERFACE_GETTER2(nsJSIID, nsIJSID, nsIJSIID)
nsJSIID::nsJSIID(nsIInterfaceInfo* aInfo)
: mInfo(aInfo)
{
NS_INIT_ISUPPORTS();
}
nsJSIID::~nsJSIID() {}
@ -654,7 +652,7 @@ NS_IMPL_CI_INTERFACE_GETTER2(nsJSCID, nsIJSID, nsIJSCID)
#define XPC_MAP_FLAGS 0
#include "xpc_map_end.h" /* This will #undef the above */
nsJSCID::nsJSCID() {NS_INIT_ISUPPORTS();}
nsJSCID::nsJSCID() {}
nsJSCID::~nsJSCID() {}
NS_IMETHODIMP nsJSCID::GetName(char * *aName)

View File

@ -47,7 +47,6 @@
nsJSRuntimeServiceImpl::nsJSRuntimeServiceImpl() :
mRuntime(0)
{
NS_INIT_ISUPPORTS();
}
nsJSRuntimeServiceImpl::~nsJSRuntimeServiceImpl() {

View File

@ -110,7 +110,6 @@ XPCJSStackFrame::XPCJSStackFrame()
mLineno(0),
mLanguage(nsIProgrammingLanguage::UNKNOWN)
{
NS_INIT_ISUPPORTS();
}
XPCJSStackFrame::~XPCJSStackFrame()

View File

@ -208,7 +208,6 @@ static nsXPCThreadJSContextStackImpl* gXPCThreadJSContextStack = nsnull;
nsXPCThreadJSContextStackImpl::nsXPCThreadJSContextStackImpl()
{
NS_INIT_ISUPPORTS();
}
nsXPCThreadJSContextStackImpl::~nsXPCThreadJSContextStackImpl()

View File

@ -42,7 +42,6 @@ NS_IMPL_ISUPPORTS2_CI(XPCVariant, XPCVariant, nsIVariant)
XPCVariant::XPCVariant()
: mJSVal(JSVAL_VOID)
{
NS_INIT_ISUPPORTS();
nsVariant::Initialize(&mData);
}

View File

@ -312,7 +312,6 @@ nsXPCWrappedJS::nsXPCWrappedJS(XPCCallContext& ccx,
printf("//////// %d instances of nsXPCWrappedJS created\n", count);
#endif
NS_INIT_ISUPPORTS();
// intensionally do double addref - see Release().
NS_ADDREF_THIS();
NS_ADDREF_THIS();

View File

@ -160,7 +160,6 @@ nsXPCWrappedJSClass::nsXPCWrappedJSClass(XPCCallContext& ccx, REFNSIID aIID,
mDescriptors(nsnull)
{
NS_ADDREF(mInfo);
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
{ // scoped lock
@ -393,7 +392,6 @@ xpcProperty::xpcProperty(const PRUnichar* aName, PRUint32 aNameLen,
nsIVariant* aValue)
: mName(aName, aNameLen), mValue(aValue)
{
NS_INIT_ISUPPORTS();
}
/* readonly attribute AString name; */
@ -417,7 +415,6 @@ NS_IMPL_ISUPPORTS1(xpcPropertyBagEnumerator, nsISimpleEnumerator)
xpcPropertyBagEnumerator::xpcPropertyBagEnumerator(PRUint32 count)
: mIndex(0), mCount(0)
{
NS_INIT_ISUPPORTS();
mArray.SizeTo(count);
}

View File

@ -491,7 +491,6 @@ XPCWrappedNative::XPCWrappedNative(nsISupports* aIdentity,
mFlatJSObject((JSObject*)JSVAL_ONE), // non-null to pass IsValid() test
mScriptableInfo(nsnull)
{
NS_INIT_ISUPPORTS();
NS_ADDREF(mIdentity);
NS_ASSERTION(mMaybeProto, "bad ctor param");
@ -511,7 +510,6 @@ XPCWrappedNative::XPCWrappedNative(nsISupports* aIdentity,
mFlatJSObject((JSObject*)JSVAL_ONE), // non-null to pass IsValid() test
mScriptableInfo(nsnull)
{
NS_INIT_ISUPPORTS();
NS_ADDREF(mIdentity);
NS_ASSERTION(aScope, "bad ctor param");
@ -2985,7 +2983,6 @@ XPCJSObjectHolder::GetJSObject(JSObject** aJSObj)
XPCJSObjectHolder::XPCJSObjectHolder(JSContext* cx, JSObject* obj)
: mRuntime(JS_GetRuntime(cx)), mJSObj(obj)
{
NS_INIT_ISUPPORTS();
JS_AddNamedRoot(cx, &mJSObj, "XPCJSObjectHolder::mJSObj");
}

View File

@ -180,7 +180,6 @@ NS_IMPL_ISUPPORTS2(nsTestXPCFoo, nsITestXPCFoo, nsITestXPCFoo2)
nsTestXPCFoo::nsTestXPCFoo()
: mFoo(NULL)
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}
@ -216,7 +215,6 @@ NS_IMPL_ISUPPORTS1(MySecMan, nsIXPCSecurityManager)
MySecMan::MySecMan()
: mMode(OK_ALL)
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -52,7 +52,6 @@ private:
xpcarraytest::xpcarraytest()
: mReceiver(NULL)
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -59,7 +59,6 @@ class xpcTestObjectReadOnly : public nsIXPCTestObjectReadOnly {
NS_IMPL_ISUPPORTS1(xpcTestObjectReadOnly, nsIXPCTestObjectReadOnly);
xpcTestObjectReadOnly :: xpcTestObjectReadOnly() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
boolProperty = PR_TRUE;
@ -158,7 +157,6 @@ class xpcTestObjectReadWrite : public nsIXPCTestObjectReadWrite {
NS_IMPL_ISUPPORTS1(xpcTestObjectReadWrite, nsIXPCTestObjectReadWrite);
xpcTestObjectReadWrite :: xpcTestObjectReadWrite() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();

View File

@ -60,7 +60,6 @@ NS_IMPL_ISUPPORTS2_CI(xpcTestCallJS, nsIXPCTestCallJS, nsIXPCScriptable);
#include "xpc_map_end.h" /* This will #undef the above */
xpcTestCallJS :: xpcTestCallJS() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};

View File

@ -66,7 +66,6 @@ NS_IMPL_ISUPPORTS1(xpctestOther, nsIXPCTestOther);
xpctestOther::xpctestOther()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}
@ -171,7 +170,6 @@ xpctestChild::QueryInterface(REFNSIID iid, void** result)
xpctestChild::xpctestChild()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -47,7 +47,6 @@ public:
NS_IMPL_ISUPPORTS1(xpcTestConst, nsIXPCTestConst);
xpcTestConst :: xpcTestConst() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};

View File

@ -53,7 +53,6 @@ NS_IMPL_ISUPPORTS1(xpcTestDOMString, nsIXPCTestDOMString);
xpcTestDOMString::xpcTestDOMString()
: mHandle(0)
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -73,7 +73,6 @@ NS_IMPL_ISUPPORTS1(xpctestEcho, nsIEcho);
xpctestEcho::xpctestEcho()
: mReceiver(nsnull), mString(nsnull), mSomeValue(0)
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -52,7 +52,6 @@ public:
NS_IMPL_ISUPPORTS1(xpcTestIn, nsIXPCTestIn);
xpcTestIn :: xpcTestIn() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};

View File

@ -48,7 +48,6 @@ public:
NS_IMPL_ISUPPORTS1(xpcTestInOut, nsIXPCTestInOut);
xpcTestInOut :: xpcTestInOut() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};

View File

@ -50,7 +50,6 @@ NS_IMPL_ISUPPORTS1(xpcTestParentOne, nsIXPCTestParentOne);
xpcTestParentOne :: xpcTestParentOne()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};
@ -114,7 +113,6 @@ NS_IMPL_ISUPPORTS1(xpcTestParentTwo, nsIXPCTestParentTwo);
xpcTestParentTwo :: xpcTestParentTwo()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};
@ -185,7 +183,6 @@ NS_IMPL_ISUPPORTS3_CI(xpcTestChild2,nsIXPCTestChild2,nsIXPCTestParentOne,nsIXPCT
xpcTestChild2 :: xpcTestChild2()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};
@ -307,7 +304,6 @@ NS_IMPL_ISUPPORTS2(xpcTestChild3,nsIXPCTestChild3,nsIXPCTestParentOne);
xpcTestChild3 :: xpcTestChild3()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};
@ -405,7 +401,6 @@ NS_IMPL_ISUPPORTS3(xpcTestChild4,nsIXPCTestChild4,nsIXPCTestParentOne,nsIXPCTest
xpcTestChild4 :: xpcTestChild4()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};
@ -476,7 +471,6 @@ NS_IMPL_ISUPPORTS3(xpcTestChild5,nsIXPCTestChild5,nsIXPCTestParentOne,nsIXPCTest
xpcTestChild5 :: xpcTestChild5()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};

View File

@ -102,7 +102,6 @@ xpctestNoisy::xpctestNoisy()
: mID(++sID)
{
sCount++;
NS_INIT_ISUPPORTS();
printf("Noisy %d - Created, %d total\n", mID, sCount);
NS_ADDREF_THIS();
}

View File

@ -76,7 +76,6 @@ private:
NS_IMPL_ISUPPORTS1(xpcTestOut, nsIXPCTestOut);
xpcTestOut :: xpcTestOut() {
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
};

View File

@ -102,7 +102,6 @@ public:
xpcoverloaded::xpcoverloaded()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -49,7 +49,6 @@ public:
xpcstringtest::xpcstringtest()
{
NS_INIT_ISUPPORTS();
NS_ADDREF_THIS();
}

View File

@ -51,7 +51,6 @@ NS_IMPL_ISUPPORTS1(nsTestVariant, nsITestVariant)
nsTestVariant::nsTestVariant()
{
NS_INIT_ISUPPORTS();
}
nsTestVariant::~nsTestVariant()

View File

@ -42,7 +42,6 @@ NS_IMPL_ISUPPORTS1(nsXPCToolsCompiler, nsIXPCToolsCompiler)
nsXPCToolsCompiler::nsXPCToolsCompiler()
{
NS_INIT_ISUPPORTS();
}
nsXPCToolsCompiler::~nsXPCToolsCompiler()

View File

@ -140,7 +140,6 @@ nsXPCToolsProfiler::nsXPCToolsProfiler()
mFileTable(new nsHashtable(128, PR_FALSE)),
mScriptTable(new nsHashtable(256, PR_FALSE))
{
NS_INIT_ISUPPORTS();
InitializeRuntime();
}

View File

@ -83,7 +83,6 @@ NS_NewAutoCopyService(nsIAutoCopyService** aResult)
nsAutoCopyService::nsAutoCopyService()
{
NS_INIT_ISUPPORTS();
}
NS_IMETHODIMP

View File

@ -96,7 +96,6 @@ nsCaret::nsCaret()
, mLastCaretView(nsnull)
, mLastContentOffset(0)
{
NS_INIT_ISUPPORTS();
}

View File

@ -248,7 +248,6 @@ NS_NewFrameTraversal(nsIBidirectionalEnumerator **aEnumerator,
nsFrameTraversal::nsFrameTraversal()
{
NS_INIT_ISUPPORTS();
}
nsFrameTraversal::~nsFrameTraversal()
@ -277,7 +276,6 @@ nsFrameIterator::nsFrameIterator()
mLast = nsnull;
mCurrent = nsnull;
mStart = nsnull;
NS_INIT_ISUPPORTS();
}

View File

@ -48,7 +48,6 @@ NS_IMPL_ISUPPORTS2(nsImageLoader, imgIDecoderObserver, imgIContainerObserver)
nsImageLoader::nsImageLoader() :
mFrame(nsnull), mPresContext(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsImageLoader::~nsImageLoader()

View File

@ -82,7 +82,6 @@ NS_NewLayoutDebugger(nsILayoutDebugger** aResult)
nsLayoutDebugger::nsLayoutDebugger()
{
NS_INIT_ISUPPORTS();
}
nsLayoutDebugger::~nsLayoutDebugger()

View File

@ -79,7 +79,6 @@ NS_NewLayoutHistoryState(nsILayoutHistoryState** aState)
nsLayoutHistoryState::nsLayoutHistoryState()
{
NS_INIT_ISUPPORTS();
}
nsLayoutHistoryState::~nsLayoutHistoryState()

View File

@ -154,7 +154,6 @@ nsPresContext::nsPresContext()
NS_FONT_WEIGHT_NORMAL, 0, NSIntPointsToTwips(12)),
mNoTheme(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mCompatibilityMode = eCompatibility_FullStandards;
mWidgetRenderingMode = eWidgetRendering_Gfx;
mImageAnimationMode = imgIContainer::kNormalAnimMode;

View File

@ -49,7 +49,6 @@ NS_IMPL_ISUPPORTS1(nsPresState, nsIPresState)
nsPresState::nsPresState(void)
:mPropertyTable(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsPresState::~nsPresState(void)

View File

@ -83,7 +83,6 @@ NS_NewAutoCopyService(nsIAutoCopyService** aResult)
nsAutoCopyService::nsAutoCopyService()
{
NS_INIT_ISUPPORTS();
}
NS_IMETHODIMP

View File

@ -96,7 +96,6 @@ nsCaret::nsCaret()
, mLastCaretView(nsnull)
, mLastContentOffset(0)
{
NS_INIT_ISUPPORTS();
}

View File

@ -248,7 +248,6 @@ NS_NewFrameTraversal(nsIBidirectionalEnumerator **aEnumerator,
nsFrameTraversal::nsFrameTraversal()
{
NS_INIT_ISUPPORTS();
}
nsFrameTraversal::~nsFrameTraversal()
@ -277,7 +276,6 @@ nsFrameIterator::nsFrameIterator()
mLast = nsnull;
mCurrent = nsnull;
mStart = nsnull;
NS_INIT_ISUPPORTS();
}

View File

@ -510,7 +510,6 @@ NS_NewFrameUtil(nsIFrameUtil** aResult)
nsFrameUtil::nsFrameUtil()
{
NS_INIT_ISUPPORTS();
}
nsFrameUtil::~nsFrameUtil()

View File

@ -48,7 +48,6 @@ NS_IMPL_ISUPPORTS2(nsImageLoader, imgIDecoderObserver, imgIContainerObserver)
nsImageLoader::nsImageLoader() :
mFrame(nsnull), mPresContext(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsImageLoader::~nsImageLoader()

View File

@ -82,7 +82,6 @@ NS_NewLayoutDebugger(nsILayoutDebugger** aResult)
nsLayoutDebugger::nsLayoutDebugger()
{
NS_INIT_ISUPPORTS();
}
nsLayoutDebugger::~nsLayoutDebugger()

View File

@ -79,7 +79,6 @@ NS_NewLayoutHistoryState(nsILayoutHistoryState** aState)
nsLayoutHistoryState::nsLayoutHistoryState()
{
NS_INIT_ISUPPORTS();
}
nsLayoutHistoryState::~nsLayoutHistoryState()

View File

@ -154,7 +154,6 @@ nsPresContext::nsPresContext()
NS_FONT_WEIGHT_NORMAL, 0, NSIntPointsToTwips(12)),
mNoTheme(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mCompatibilityMode = eCompatibility_FullStandards;
mWidgetRenderingMode = eWidgetRendering_Gfx;
mImageAnimationMode = imgIContainer::kNormalAnimMode;

View File

@ -49,7 +49,6 @@ NS_IMPL_ISUPPORTS1(nsPresState, nsIPresState)
nsPresState::nsPresState(void)
:mPropertyTable(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsPresState::~nsPresState(void)

View File

@ -510,7 +510,6 @@ NS_NewFrameUtil(nsIFrameUtil** aResult)
nsFrameUtil::nsFrameUtil()
{
NS_INIT_ISUPPORTS();
}
nsFrameUtil::~nsFrameUtil()