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 22:35:09 +00:00
parent acdd4e46c0
commit 954ad5f9d9
144 changed files with 34 additions and 255 deletions

View File

@ -70,8 +70,6 @@ nsJARChannel::nsJARChannel()
, mInitiator(nsnull)
#endif
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
//
// Initialize the global PRLogModule for socket transport logging

View File

@ -58,7 +58,6 @@ static NS_DEFINE_CID(kZipReaderCacheCID, NS_ZIPREADERCACHE_CID);
nsJARProtocolHandler::nsJARProtocolHandler()
{
NS_INIT_ISUPPORTS();
}
nsresult

View File

@ -32,7 +32,6 @@
nsJARURI::nsJARURI()
: mJAREntry(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsJARURI::~nsJARURI()

View File

@ -84,7 +84,7 @@ public:
//////////////////////////////////////////////////////////////////////
// from nsISecureJNI:
nsCNullSecurityContext() { NS_INIT_ISUPPORTS();};
nsCNullSecurityContext() { };
};
#endif // CSecurityContext_h___

View File

@ -238,7 +238,6 @@ nsCSecurityContext::nsCSecurityContext(JSContext* cx)
m_HasUniversalBrowserReadCapability(PR_FALSE)
{
MOZ_COUNT_CTOR(nsCSecurityContext);
NS_INIT_ISUPPORTS();
// Get the Script Security Manager.
@ -282,7 +281,6 @@ nsCSecurityContext::nsCSecurityContext(nsIPrincipal *principal)
m_HasUniversalBrowserReadCapability(PR_FALSE)
{
MOZ_COUNT_CTOR(nsCSecurityContext);
NS_INIT_ISUPPORTS();
// Get the Script Security Manager.

View File

@ -30,8 +30,6 @@ NS_IMPL_ISUPPORTS1(OJITestLoader, OJITestLoader)
OJITestLoader::OJITestLoader(void)
{
NS_INIT_ISUPPORTS();
TestResult* res = NULL;
char** testCase = loadTestList();
int i = 0;

View File

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

View File

@ -296,7 +296,6 @@ NS_IMPL_ISUPPORTS2(ns4xPlugin, nsIPlugin, nsIFactory);
ns4xPlugin::ns4xPlugin(NPPluginFuncs* callbacks, PRLibrary* aLibrary, NP_PLUGINSHUTDOWN aShutdown, nsIServiceManagerObsolete* serviceMgr)
{
NS_INIT_ISUPPORTS();
memset((void*) &fCallbacks, 0, sizeof(fCallbacks));
gServiceMgr = serviceMgr;
fLibrary = nsnull;

View File

@ -94,7 +94,6 @@ ns4xPluginStreamListener::ns4xPluginStreamListener(nsIPluginInstance* inst,
mCallNotify(PR_FALSE),
mStreamInfo(nsnull)
{
NS_INIT_ISUPPORTS();
mInst = (ns4xPluginInstance*) inst;
mPosition = 0;
mStreamBufferSize = 0;
@ -563,8 +562,6 @@ NS_IMPL_ISUPPORTS2(ns4xPluginInstance, nsIPluginInstance, nsIScriptablePlugin)
ns4xPluginInstance :: ns4xPluginInstance(NPPluginFuncs* callbacks, PRLibrary* aLibrary)
: fCallbacks(callbacks)
{
NS_INIT_ISUPPORTS();
NS_ASSERTION(fCallbacks != NULL, "null callbacks");
// Initialize the NPP structure.

View File

@ -57,7 +57,6 @@ NS_IMPL_ISUPPORTS1(nsClassicPluginFactory, nsIClassicPluginFactory)
nsClassicPluginFactory::nsClassicPluginFactory()
{
NS_INIT_ISUPPORTS();
}
nsresult nsClassicPluginFactory::Create(nsISupports* aOuter, REFNSIID aIID, void** aResult)

View File

@ -185,7 +185,6 @@ static int CompareVersion(verBlock vbVersionOld, verBlock vbVersionNew)
nsPluginDirServiceProvider::nsPluginDirServiceProvider()
{
NS_INIT_ISUPPORTS();
}
nsPluginDirServiceProvider::~nsPluginDirServiceProvider()

View File

@ -57,7 +57,7 @@ class nsIStreamListener;
class nsPluginDocLoaderFactory : public nsIDocumentLoaderFactory
{
protected:
nsPluginDocLoaderFactory() { NS_INIT_ISUPPORTS(); }
nsPluginDocLoaderFactory() { }
virtual ~nsPluginDocLoaderFactory() {}
public:

View File

@ -1305,8 +1305,6 @@ private:
////////////////////////////////////////////////////////////////////////
nsPluginStreamInfo::nsPluginStreamInfo()
{
NS_INIT_ISUPPORTS();
mPluginInstance = nsnull;
mPluginStreamListenerPeer = nsnull;
@ -1618,8 +1616,6 @@ private:
////////////////////////////////////////////////////////////////////////
nsPluginCacheListener::nsPluginCacheListener(nsPluginStreamListenerPeer* aListener)
{
NS_INIT_ISUPPORTS();
mListener = aListener;
NS_ADDREF(mListener);
}
@ -1680,8 +1676,6 @@ nsPluginCacheListener::OnStopRequest(nsIRequest *request,
nsPluginStreamListenerPeer::nsPluginStreamListenerPeer()
{
NS_INIT_ISUPPORTS();
mURL = nsnull;
mOwner = nsnull;
mInstance = nsnull;
@ -2567,7 +2561,6 @@ nsPluginStreamListenerPeer::VisitHeader(const nsACString &header, const nsACStri
nsPluginHostImpl::nsPluginHostImpl()
{
NS_INIT_ISUPPORTS();
mPluginsLoaded = PR_FALSE;
mDontShowBadPluginMessage = PR_FALSE;
mIsDestroyed = PR_FALSE;
@ -4183,7 +4176,6 @@ public:
DOMMimeTypeImpl(nsPluginTag* aPluginTag, PRUint32 aMimeTypeIndex)
{
NS_INIT_ISUPPORTS();
(void) CreateUnicodeDecoder(getter_AddRefs(mUnicodeDecoder));
if (aPluginTag) {
if (aPluginTag->mMimeDescriptionArray)
@ -4241,8 +4233,6 @@ public:
DOMPluginImpl(nsPluginTag* aPluginTag) : mPluginTag(aPluginTag)
{
NS_INIT_ISUPPORTS();
(void) CreateUnicodeDecoder(getter_AddRefs(mUnicodeDecoder));
}
@ -6548,7 +6538,6 @@ nsresult nsPluginStreamListenerPeer::ServeStreamAsFile(nsIRequest *request,
NS_IMPL_ISUPPORTS1(nsPluginByteRangeStreamListener, nsIStreamListener)
nsPluginByteRangeStreamListener::nsPluginByteRangeStreamListener(nsIWeakReference* aWeakPtr)
{
NS_INIT_ISUPPORTS();
mWeakPtrPluginStreamListenerPeer = aWeakPtr;
mRemoveMagicNumber = PR_FALSE;
}

View File

@ -65,8 +65,6 @@
nsPluginInstancePeerImpl::nsPluginInstancePeerImpl()
{
NS_INIT_ISUPPORTS();
mInstance = nsnull;
mOwner = nsnull;
mMIMEType = nsnull;
@ -155,8 +153,6 @@ nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstance
mTarget(PL_strdup(target)),
mOwner(owner)
{
NS_INIT_ISUPPORTS();
nsresult rv;
nsCOMPtr<nsIFile> pluginTmp;
rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp));

View File

@ -202,7 +202,6 @@ NS_NewPluginContentViewer(const char* aCommand,
// Note: operator new zeros our memory
PluginViewerImpl::PluginViewerImpl(const char* aCommand)
{
NS_INIT_ISUPPORTS();
mEnableRendering = PR_TRUE;
}
@ -985,7 +984,6 @@ PluginViewerImpl::CopyImageContents()
PluginListener::PluginListener(PluginViewerImpl* aViewer)
{
NS_INIT_ISUPPORTS();
mViewer = aViewer;
NS_ADDREF(aViewer);
mNextStream = nsnull;
@ -1038,8 +1036,6 @@ PluginListener::OnDataAvailable(nsIRequest *request, nsISupports *ctxt,
pluginInstanceOwner :: pluginInstanceOwner()
{
NS_INIT_ISUPPORTS();
// create nsPluginNativeWindow object, it is derived from nsPluginWindow
// struct and allows to manipulate native window procedure
nsCOMPtr<nsIPluginHost> ph = do_GetService(kCPluginManagerCID);

View File

@ -51,7 +51,6 @@
nsScriptablePeer::nsScriptablePeer(CPlugin* aPlugin)
{
NS_INIT_ISUPPORTS();
mPlugin = aPlugin;
}

View File

@ -91,7 +91,6 @@ nsSanePluginInstance::nsSanePluginInstance( void )
printf("nsSanePluginInstance::nsSanePluginInstance()\n");
#endif
NS_INIT_ISUPPORTS();
PR_AtomicIncrement(&gPluginObjectCount);
// set default jpeg compression attributes
@ -1994,7 +1993,6 @@ nsSanePluginStreamListener::nsSanePluginStreamListener(nsSanePluginInstance* ins
#endif
PR_AtomicIncrement(&gPluginObjectCount);
NS_INIT_ISUPPORTS();
mPlugInst = inst;
}

View File

@ -47,9 +47,6 @@ nsSanePluginFactoryImpl::nsSanePluginFactoryImpl( const nsCID &aClass,
#ifdef DEBUG
printf("nsSanePluginFactoryImpl::nsSanePluginFactoryImpl()\n");
#endif
NS_INIT_ISUPPORTS();
}
nsSanePluginFactoryImpl::~nsSanePluginFactoryImpl()

View File

@ -1071,9 +1071,6 @@ NPP_HandleEvent(NPP instance, void* event)
CPluginManager::CPluginManager(void)
{
// Set reference count to 0.
NS_INIT_ISUPPORTS();
mLiveconnect = NULL;
}
@ -1374,9 +1371,6 @@ CPluginInstancePeer::CPluginInstancePeer(nsIPluginInstance* pluginInstance,
npp(npp), typeString(typeString), type(type), attribute_cnt(attr_cnt),
attribute_list(NULL), values_list(NULL)
{
// Set the reference count to 0.
NS_INIT_ISUPPORTS();
NS_IF_ADDREF(mInstance);
attribute_list = (char**) NPN_MemAlloc(attr_cnt * sizeof(const char*));
@ -1620,8 +1614,6 @@ CPluginInstancePeer::QueryInterface(const nsIID& iid, void** ptr)
CPluginManagerStream::CPluginManagerStream(NPP npp, NPStream* pstr)
: npp(npp), pstream(pstr)
{
// Set the reference count to 0.
NS_INIT_ISUPPORTS();
}
CPluginManagerStream::~CPluginManagerStream(void)
@ -1726,8 +1718,6 @@ CPluginInputStream::CPluginInputStream(nsIPluginStreamListener* listener)
mBuffer(NULL), mBufferLength(0), mAmountRead(0),
mStreamInfo(NULL)
{
NS_INIT_ISUPPORTS();
if (mListener != NULL) {
mListener->AddRef();
mListener->GetStreamType(&mStreamType);

View File

@ -496,8 +496,6 @@ SimplePluginInstance::UnregisterSelf(nsIComponentManager* aCompMgr,
SimplePluginInstance::SimplePluginInstance(void)
: fText(NULL), fPeer(NULL), fWindow(NULL), fMode(nsPluginMode_Embedded)
{
NS_INIT_ISUPPORTS();
static const char text[] = "Hello World!";
fText = (char*) nsMemory::Clone(text, sizeof(text));
@ -811,7 +809,6 @@ SimplePluginStreamListener::SimplePluginStreamListener(SimplePluginInstance* ins
const char* msgName)
: fMessageName(msgName)
{
NS_INIT_ISUPPORTS();
char msg[256];
sprintf(msg, "### Creating SimplePluginStreamListener for %s\n", fMessageName);
}

View File

@ -337,7 +337,6 @@ NS_IMPL_ISUPPORTS2(EventsPluginInstance, nsIPluginInstance, nsIEventsSampleInsta
EventsPluginInstance::EventsPluginInstance() :
fPeer(NULL), fWindow(NULL), fMode(nsPluginMode_Embedded)
{
NS_INIT_ISUPPORTS();
wChild = 0;
}
@ -560,7 +559,6 @@ NS_METHOD EventsPluginInstance::GetValue(nsPluginInstanceVariable /*variable*/,
EventsPluginStreamListener::EventsPluginStreamListener(EventsPluginInstance* inst_,
const char* msgName)
: fMessageName(msgName), inst(inst_) {
NS_INIT_ISUPPORTS();
#ifdef EVENTSPLUGIN_DEBUG
printf("EventsPluginStreamListener: EventsPluginStreamListener for %s\n", fMessageName);
#endif

View File

@ -90,7 +90,6 @@ public:
nsMetaModuleImpl::nsMetaModuleImpl()
{
NS_INIT_ISUPPORTS();
}
nsMetaModuleImpl::~nsMetaModuleImpl()

View File

@ -122,7 +122,6 @@ public:
nsMetaModuleImpl::nsMetaModuleImpl()
{
NS_INIT_ISUPPORTS();
}
nsMetaModuleImpl::~nsMetaModuleImpl()

View File

@ -56,7 +56,6 @@ public:
// nsAsyncStreamObserver methods:
nsAsyncStreamObserver()
{
NS_INIT_ISUPPORTS();
}
virtual ~nsAsyncStreamObserver() {}

View File

@ -74,7 +74,6 @@ nsBufferedStream::nsBufferedStream()
mBufferDisabled(PR_FALSE),
mGetBufferCount(0)
{
NS_INIT_ISUPPORTS();
}
nsBufferedStream::~nsBufferedStream()

View File

@ -82,8 +82,6 @@ static NS_DEFINE_CID(kCollationFactoryCID, NS_COLLATIONFACTORY_CID);
nsDirectoryIndexStream::nsDirectoryIndexStream()
: mOffset(0), mPos(0)
{
NS_INIT_ISUPPORTS();
#ifdef PR_LOGGING
if (! gLog)
gLog = PR_NewLogModule("nsDirectoryIndexStream");

View File

@ -53,7 +53,7 @@ public:
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSISTREAMLISTENER
nsDownloader() { NS_INIT_ISUPPORTS();} ;
nsDownloader() { } ;
virtual ~nsDownloader() {};
static NS_METHOD

View File

@ -107,7 +107,6 @@ nsFileIO::nsFileIO()
mPerm(0),
mStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
//
// Initialize the global PRLogModule for socket transport logging
@ -401,7 +400,6 @@ nsFileStream::nsFileStream()
: mFD(nsnull)
, mCloseFD(PR_TRUE)
{
NS_INIT_ISUPPORTS();
}
nsFileStream::~nsFileStream()

View File

@ -75,7 +75,7 @@ public:
NS_DECL_ISUPPORTS
nsFileTransportSourceWrapper()
: mBytesRead(0), mLastError(NS_OK) { NS_INIT_ISUPPORTS(); }
: mBytesRead(0), mLastError(NS_OK) { }
virtual ~nsFileTransportSourceWrapper() {}
//
@ -143,7 +143,7 @@ public:
NS_DECL_ISUPPORTS
nsFileTransportSinkWrapper()
: mBytesWritten(0), mLastError(NS_OK) { NS_INIT_ISUPPORTS(); }
: mBytesWritten(0), mLastError(NS_OK) { }
virtual ~nsFileTransportSinkWrapper() {}
//
@ -226,8 +226,6 @@ nsFileTransport::nsFileTransport()
mSinkWrapper(nsnull),
mService(nsnull)
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
if (!gFileTransportLog)
gFileTransportLog = PR_NewLogModule("nsFileTransport");

View File

@ -61,7 +61,6 @@ nsFileTransportService::nsFileTransportService() :
mShuttingDown(PR_FALSE),
mLock(nsnull)
{
NS_INIT_ISUPPORTS();
mInstance = this;
}

View File

@ -154,8 +154,6 @@ nsIOService::nsIOService()
: mOffline(PR_FALSE),
mOfflineForProfileChange(PR_FALSE)
{
NS_INIT_ISUPPORTS();
// Get the allocator ready
if (!gBufferCache)
{

View File

@ -55,7 +55,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS2(nsInputStreamIO,
nsInputStreamIO::nsInputStreamIO()
: mContentLength(-1), mStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
}
nsInputStreamIO::~nsInputStreamIO()
@ -160,7 +159,6 @@ nsStreamIOChannel::nsStreamIOChannel()
mBufferSegmentSize(0), mBufferMaxSize(0),
mLoadFlags(LOAD_NORMAL), mStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
}
nsStreamIOChannel::~nsStreamIOChannel()

View File

@ -95,7 +95,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS3(nsMIMEInputStream,
nsMIMEInputStream::nsMIMEInputStream() : mAddContentLength(PR_FALSE),
mStartedReading(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsMIMEInputStream::~nsMIMEInputStream()

View File

@ -156,7 +156,6 @@ nsNetModRegEntry::nsNetModRegEntry(const char *aTopic,
nsINetNotify *aNotify,
nsresult *result)
{
NS_INIT_ISUPPORTS();
mTopic = new char [PL_strlen(aTopic) + 1];
PL_strcpy(mTopic, aTopic);

View File

@ -181,7 +181,6 @@ nsNetModuleMgr::EnumerateModules(const char *aTopic, nsISimpleEnumerator **aEnum
///////////////////////////////////
nsNetModuleMgr::nsNetModuleMgr() {
NS_INIT_ISUPPORTS();
mMonitor = nsAutoMonitor::NewMonitor("nsNetModuleMgr");
}

View File

@ -74,7 +74,6 @@ nsProtocolProxyService::nsProtocolProxyService()
, mSOCKSProxyPort(-1)
, mSOCKSProxyVersion(4)
{
NS_INIT_ISUPPORTS();
}
nsProtocolProxyService::~nsProtocolProxyService()

View File

@ -87,7 +87,6 @@ public:
}
nsProxyInfo() : mType(nsnull), mHost(nsnull), mPort(-1) {
NS_INIT_ISUPPORTS();
}
const char* mType;

View File

@ -54,7 +54,7 @@ public:
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSIREQUESTOBSERVERPROXY
nsRequestObserverProxy() { NS_INIT_ISUPPORTS(); }
nsRequestObserverProxy() { }
virtual ~nsRequestObserverProxy();
nsIRequestObserver *Observer() { return mObserver; }

View File

@ -43,7 +43,6 @@ NS_IMPL_ISUPPORTS1(nsResumableEntityID, nsIResumableEntityID)
nsResumableEntityID::nsResumableEntityID() :
mSize(PRUint32(-1)),
mLastModified(PRTime(LL_INIT(-1,-1))) {
NS_INIT_ISUPPORTS();
}
nsResumableEntityID::~nsResumableEntityID() {}

View File

@ -48,7 +48,7 @@ public:
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSISIMPLESTREAMLISTENER
nsSimpleStreamListener() { NS_INIT_ISUPPORTS(); }
nsSimpleStreamListener() { }
virtual ~nsSimpleStreamListener() {}
protected:

View File

@ -48,7 +48,7 @@ public:
NS_DECL_NSISTREAMPROVIDER
NS_DECL_NSISIMPLESTREAMPROVIDER
nsSimpleStreamProvider() { NS_INIT_ISUPPORTS(); }
nsSimpleStreamProvider() { }
virtual ~nsSimpleStreamProvider() {}
protected:

View File

@ -197,8 +197,6 @@ nsSocketTransport::nsSocketTransport():
mReadRequest(nsnull),
mWriteRequest(nsnull)
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
if (!gSocketTransportLog)
gSocketTransportLog = PR_NewLogModule("nsSocketTransport");
@ -2318,7 +2316,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(nsSocketBIS, nsIInputStream)
nsSocketBIS::nsSocketBIS()
{
NS_INIT_ISUPPORTS();
}
nsSocketBIS::~nsSocketBIS()
@ -2399,7 +2396,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(nsSocketBOS, nsIOutputStream)
nsSocketBOS::nsSocketBOS()
{
NS_INIT_ISUPPORTS();
}
nsSocketBOS::~nsSocketBOS()
@ -2503,7 +2499,6 @@ nsSocketIS::nsSocketIS()
, mSock(nsnull)
, mError(0)
{
NS_INIT_ISUPPORTS();
}
NS_IMETHODIMP
@ -2605,7 +2600,6 @@ nsSocketOS::nsSocketOS()
, mSock(nsnull)
, mError(0)
{
NS_INIT_ISUPPORTS();
}
NS_METHOD
@ -2720,7 +2714,6 @@ nsSocketRequest::nsSocketRequest()
, mStartFired(0)
, mStopFired(0)
{
NS_INIT_ISUPPORTS();
}
nsSocketRequest::~nsSocketRequest()

View File

@ -77,8 +77,6 @@ nsSocketTransportService::nsSocketTransportService () :
gSocketTransportServiceLog = PR_NewLogModule("nsSocketTransportService");
#endif
LOG(("nsSocketTransportService::nsSocketTransportService"));
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(&mWorkQ);

View File

@ -318,8 +318,6 @@ nsStandardURL::nsStandardURL(PRBool aSupportsFileURL)
LOG(("Creating nsStandardURL @%p\n", this));
NS_INIT_ISUPPORTS();
if (!gInitialized) {
gInitialized = PR_TRUE;
InitGlobalObjects();

View File

@ -104,7 +104,7 @@ public: /* internal -- HPUX compiler can't handle this being private */
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
nsPrefObserver() { NS_INIT_ISUPPORTS(); }
nsPrefObserver() { }
};
friend class nsPrefObserver;

View File

@ -93,8 +93,6 @@ nsStorageTransport::nsStorageTransport()
, mWriteSegment(nsnull)
, mWriteCursor(0)
{
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(&mReadRequests);
PR_INIT_CLIST(&mInputStreams);
}
@ -433,7 +431,6 @@ nsStorageTransport::nsReadRequest::nsReadRequest()
, mOnStartFired(PR_FALSE)
, mWaitingForWrite(PR_FALSE)
{
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(this);
}
@ -792,7 +789,6 @@ nsStorageTransport::nsBlockingStream::~nsBlockingStream()
nsStorageTransport::nsInputStream::nsInputStream()
: mOffset(0)
{
NS_INIT_ISUPPORTS();
}
nsStorageTransport::nsInputStream::~nsInputStream()
@ -843,7 +839,6 @@ nsStorageTransport::nsInputStream::IsNonBlocking(PRBool *aNonBlocking)
nsStorageTransport::nsOutputStream::nsOutputStream()
{
NS_INIT_ISUPPORTS();
}
nsStorageTransport::nsOutputStream::~nsOutputStream()

View File

@ -81,7 +81,6 @@ nsStreamListenerProxy::nsStreamListenerProxy()
, mPipeEmptied(PR_FALSE)
, mListenerStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
}
nsStreamListenerProxy::~nsStreamListenerProxy()

View File

@ -51,7 +51,7 @@ public:
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSISTREAMLISTENERTEE
nsStreamListenerTee() { NS_INIT_ISUPPORTS(); }
nsStreamListenerTee() { }
virtual ~nsStreamListenerTee() { }
private:

View File

@ -52,7 +52,7 @@ public:
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSISTREAMLISTENER
nsStreamLoader() { NS_INIT_ISUPPORTS(); };
nsStreamLoader() { };
virtual ~nsStreamLoader() {};
static NS_METHOD

View File

@ -54,7 +54,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTREAMOBSERVER
nsStreamProxyBase() { NS_INIT_ISUPPORTS(); }
nsStreamProxyBase() { }
virtual ~nsStreamProxyBase() {}
nsIEventQueue *GetEventQueue() { return mEventQ.get(); }

View File

@ -67,7 +67,6 @@ nsStreamProviderProxy::nsStreamProviderProxy()
: mObserverProxy(nsnull),
mProviderStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
}
nsStreamProviderProxy::~nsStreamProviderProxy()

View File

@ -35,7 +35,6 @@ public:
// nsSyncStreamListener methods:
nsSyncStreamListener()
: mOutputStream(nsnull) {
NS_INIT_ISUPPORTS();
}
virtual ~nsSyncStreamListener();

View File

@ -53,7 +53,6 @@ NS_IMPL_ISUPPORTS5(nsURIChecker, nsIURIChecker,
nsURIChecker::nsURIChecker()
{
NS_INIT_ISUPPORTS();
mStatus = NS_OK;
mIsPending = PR_FALSE;
}

View File

@ -51,7 +51,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIURLPARSER
nsBaseURLParser() { NS_INIT_ISUPPORTS(); }
nsBaseURLParser() { }
protected:
// implemented by subclasses

View File

@ -56,7 +56,7 @@ public:
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSISTREAMLISTENER
nsUnicharStreamLoader() { NS_INIT_ISUPPORTS(); }
nsUnicharStreamLoader() { }
virtual ~nsUnicharStreamLoader() {};
static NS_METHOD

View File

@ -104,7 +104,6 @@ protected:
TestConsumer::TestConsumer()
{
NS_INIT_ISUPPORTS();
}

View File

@ -27,7 +27,6 @@ NS_IMPL_ISUPPORTS2(nsANSIInputStream, nsIInputStream, nsISeekableStream);
nsANSIInputStream::nsANSIInputStream() : mFile(nsnull), mSize(0)
{
NS_INIT_ISUPPORTS();
}
nsANSIInputStream::~nsANSIInputStream()
@ -113,7 +112,6 @@ NS_IMPL_ISUPPORTS2(nsANSIOutputStream, nsIOutputStream, nsISeekableStream);
nsANSIOutputStream::nsANSIOutputStream() : mFile(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsANSIOutputStream::~nsANSIOutputStream()
@ -212,7 +210,6 @@ NS_IMPL_ISUPPORTS3(nsANSIFileStream, nsIInputStream, nsIOutputStream, nsISeekabl
nsANSIFileStream::nsANSIFileStream() : mFile(nsnull), mSize(0)
{
NS_INIT_ISUPPORTS();
}
nsANSIFileStream::~nsANSIFileStream()

View File

@ -247,7 +247,6 @@ public:
nsCacheEntryInfo(nsCacheEntry* entry)
: mCacheEntry(entry)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsCacheEntryInfo() {}

View File

@ -40,7 +40,6 @@ nsCacheEntryDescriptor::nsCacheEntryDescriptor(nsCacheEntry * entry,
: mCacheEntry(entry),
mAccessGranted(accessGranted)
{
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(this);
NS_ADDREF(nsCacheService::GlobalInstance()); // ensure it lives for the lifetime of the descriptor
}

View File

@ -128,7 +128,6 @@ private:
nsIOutputStream * output)
: mDescriptor(nsnull), mOutput(output)
{
NS_INIT_ISUPPORTS();
NS_ADDREF(mDescriptor = descriptor);
}

View File

@ -74,7 +74,6 @@ public:
, mMemoryCacheEnabled(PR_TRUE)
, mMemoryCacheCapacity(4 * 1024 * 1024)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsCacheProfilePrefObserver() {}
@ -384,8 +383,6 @@ nsCacheService::nsCacheService()
mDeactivateFailures(0),
mDeactivatedUnboundEntries(0)
{
NS_INIT_ISUPPORTS();
NS_ASSERTION(gService==nsnull, "multiple nsCacheService instances!");
gService = this;

View File

@ -35,7 +35,6 @@ nsCacheSession::nsCacheSession(const char * clientID,
: mClientID(clientID),
mInfo(0)
{
NS_INIT_ISUPPORTS();
SetStoragePolicy(storagePolicy);
if (streamBased) MarkStreamBased();

View File

@ -112,7 +112,6 @@ nsDiskCacheBinding::nsDiskCacheBinding(nsCacheEntry* entry, nsDiskCacheRecord *
: mCacheEntry(entry)
{
NS_ASSERTION(record->ValidRecord(), "bad record");
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(this);
mRecord = *record;
mDoomed = entry->IsDoomed();

View File

@ -174,7 +174,6 @@ public:
nsDiskCacheDeviceInfo(nsDiskCacheDevice* device)
: mDevice(device)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsDiskCacheDeviceInfo() {}

View File

@ -108,7 +108,6 @@ public:
: mDeviceID(deviceID)
, mDiskEntry(diskEntry)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsDiskCacheEntryInfo() {}

View File

@ -87,7 +87,6 @@ nsDiskCacheInputStream::nsDiskCacheInputStream( nsDiskCacheStreamIO * parent,
, mPos(0)
, mClosed(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mStreamIO->IncrementInputStreamCount();
}
@ -208,7 +207,6 @@ nsDiskCacheOutputStream::nsDiskCacheOutputStream( nsDiskCacheStreamIO * parent)
: mStreamIO(parent)
, mClosed(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
@ -327,7 +325,6 @@ nsDiskCacheStreamIO::nsDiskCacheStreamIO(nsDiskCacheBinding * binding)
, mBufDirty(PR_FALSE)
, mBuffer(nsnull)
{
NS_INIT_ISUPPORTS();
mDevice = (nsDiskCacheDevice *)mBinding->mCacheEntry->CacheDevice();
// acquire "death grip" on cache service

View File

@ -107,7 +107,6 @@ public:
nsMemoryCacheDeviceInfo(nsMemoryCacheDevice* device)
: mDevice(device)
{
NS_INIT_ISUPPORTS();
}
virtual ~nsMemoryCacheDeviceInfo() {}

View File

@ -146,7 +146,6 @@ public:
, mStartTime(PR_IntervalNow())
#endif
{
NS_INIT_ISUPPORTS();
PR_INIT_CLIST(this);
}
@ -538,7 +537,6 @@ nsDNSLookup::nsDNSLookup()
, mFlags(eCacheableMask)
, mExpires(0)
{
NS_INIT_ISUPPORTS();
MOZ_COUNT_CTOR(nsDNSLookup);
PR_INIT_CLIST(this);
PR_INIT_CLIST(&mRequestQ);
@ -926,8 +924,6 @@ nsDNSService::nsDNSService()
, mOut(nsnull)
#endif
{
NS_INIT_ISUPPORTS();
NS_ASSERTION(gService==nsnull,"multiple nsDNSServices allocated!");
gService = this;

View File

@ -47,7 +47,6 @@ NS_IMPL_ISUPPORTS1(nsIDNService, nsIIDNService)
nsIDNService::nsIDNService()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@ -50,12 +50,10 @@ NS_IMPL_THREADSAFE_ISUPPORTS1(nsMIMEInfoImpl, nsIMIMEInfo);
// nsMIMEInfoImpl methods
nsMIMEInfoImpl::nsMIMEInfoImpl() {
NS_INIT_ISUPPORTS();
mPreferredAction = nsIMIMEInfo::saveToDisk;
}
nsMIMEInfoImpl::nsMIMEInfoImpl(const char *aMIMEType) :mMIMEType( aMIMEType ){
NS_INIT_ISUPPORTS();
mPreferredAction = nsIMIMEInfo::saveToDisk;
}

View File

@ -47,7 +47,7 @@ public:
NS_DECL_NSIABOUTMODULE
nsAboutBlank() { NS_INIT_ISUPPORTS(); }
nsAboutBlank() {}
virtual ~nsAboutBlank() {}
static NS_METHOD

View File

@ -47,7 +47,7 @@ public:
NS_DECL_NSIABOUTMODULE
nsAboutBloat() { NS_INIT_ISUPPORTS(); }
nsAboutBloat() {}
virtual ~nsAboutBloat() {}
static NS_METHOD

View File

@ -54,7 +54,7 @@ public:
NS_DECL_NSIABOUTMODULE
NS_DECL_NSICACHEVISITOR
nsAboutCache() { NS_INIT_ISUPPORTS(); }
nsAboutCache() {}
virtual ~nsAboutCache() {}
static NS_METHOD

View File

@ -66,7 +66,7 @@ public:
nsAboutCacheEntry()
: mBuffer(nsnull)
{ NS_INIT_ISUPPORTS(); }
{}
virtual ~nsAboutCacheEntry() {}

View File

@ -53,7 +53,6 @@ static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
nsAboutProtocolHandler::nsAboutProtocolHandler()
{
NS_INIT_ISUPPORTS();
}
nsresult

View File

@ -48,7 +48,7 @@ public:
NS_DECL_NSIABOUTMODULE
nsAboutRedirector() { NS_INIT_ISUPPORTS(); }
nsAboutRedirector() {}
virtual ~nsAboutRedirector() {}
static NS_METHOD

View File

@ -56,8 +56,6 @@ static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
// nsDataChannel methods
nsDataChannel::nsDataChannel() {
NS_INIT_ISUPPORTS();
mStatus = NS_OK;
mContentLength = -1;
mLoadFlags = nsIRequest::LOAD_NORMAL;

View File

@ -52,7 +52,6 @@ static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
////////////////////////////////////////////////////////////////////////////////
nsDataHandler::nsDataHandler() {
NS_INIT_ISUPPORTS();
}
nsDataHandler::~nsDataHandler() {

View File

@ -74,7 +74,6 @@ nsFileChannel::nsFileChannel()
,mInitiator(nsnull)
#endif
{
NS_INIT_ISUPPORTS();
}
nsresult

View File

@ -63,7 +63,6 @@ static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
nsFileProtocolHandler::nsFileProtocolHandler()
{
NS_INIT_ISUPPORTS();
mGenerateHTMLContent = PR_FALSE;
}

View File

@ -87,7 +87,6 @@ nsFTPChannel::nsFTPChannel()
mStatus(NS_OK),
mCanceled(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsFTPChannel::~nsFTPChannel()

View File

@ -155,7 +155,6 @@ DataRequestForwarder::DataRequestForwarder()
mBytesTransfered = 0;
mRetrying = mUploading = mDelayedOnStartFired = PR_FALSE;
NS_INIT_ISUPPORTS();
}
DataRequestForwarder::~DataRequestForwarder()
@ -400,8 +399,6 @@ NS_IMPL_THREADSAFE_ISUPPORTS3(nsFtpState,
nsIRequest);
nsFtpState::nsFtpState() {
NS_INIT_ISUPPORTS();
PR_LOG(gFTPLog, PR_LOG_ALWAYS, ("(%x) nsFtpState created", this));
// bool init
mRETRFailed = PR_FALSE;

View File

@ -56,7 +56,7 @@ class nsFtpStreamProvider : public nsIStreamProvider {
public:
NS_DECL_ISUPPORTS
nsFtpStreamProvider() { NS_INIT_ISUPPORTS(); }
nsFtpStreamProvider() {}
virtual ~nsFtpStreamProvider() {}
//
@ -112,7 +112,6 @@ nsFtpControlConnection::nsFtpControlConnection(const char* host,
PRUint32 port)
: mServerType(0), mSuspendedWrite(0), mPort(port)
{
NS_INIT_ISUPPORTS();
PR_LOG(gFTPLog, PR_LOG_ALWAYS, ("(%x) nsFtpControlConnection created", this));
mHost.Adopt(nsCRT::strdup(host));

View File

@ -76,7 +76,6 @@ nsVoidArray* nsFtpProtocolHandler::mRootConnectionList = nsnull;
PRInt32 nsFtpProtocolHandler::mIdleTimeout = -1;
////////////////////////////////////////////////////////////////////////////////
nsFtpProtocolHandler::nsFtpProtocolHandler() {
NS_INIT_ISUPPORTS();
}
nsFtpProtocolHandler::~nsFtpProtocolHandler() {

View File

@ -60,7 +60,6 @@ nsGopherChannel::nsGopherChannel()
mType(-1),
mStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
}
nsGopherChannel::~nsGopherChannel()

View File

@ -48,7 +48,6 @@ static NS_DEFINE_CID(kStandardURLCID, NS_STANDARDURL_CID);
////////////////////////////////////////////////////////////////////////////////
nsGopherHandler::nsGopherHandler() {
NS_INIT_ISUPPORTS();
#ifdef PR_LOGGING
if (!gGopherLog)
gGopherLog = PR_NewLogModule("nsGopherProtocol");

View File

@ -53,7 +53,6 @@
nsHttpBasicAuth::nsHttpBasicAuth()
{
NS_INIT_ISUPPORTS();
}
nsHttpBasicAuth::~nsHttpBasicAuth()

View File

@ -79,8 +79,6 @@ nsHttpChannel::nsHttpChannel()
{
LOG(("Creating nsHttpChannel @%x\n", this));
NS_INIT_ISUPPORTS();
// grab a reference to the handler to ensure that it doesn't go away.
nsHttpHandler *handler = nsHttpHandler::get();
NS_ADDREF(handler);
@ -3329,7 +3327,6 @@ nsHttpChannel::nsContentEncodings::nsContentEncodings(nsIHttpChannel* aChannel,
{
mCurEnd = aEncodingHeader + strlen(aEncodingHeader);
mCurStart = mCurEnd;
NS_INIT_ISUPPORTS();
}
nsHttpChannel::nsContentEncodings::~nsContentEncodings()

View File

@ -63,8 +63,6 @@ nsHttpConnection::nsHttpConnection()
{
LOG(("Creating nsHttpConnection @%x\n", this));
NS_INIT_ISUPPORTS();
// grab a reference to the handler to ensure that it doesn't go away.
nsHttpHandler *handler = nsHttpHandler::get();
NS_ADDREF(handler);

View File

@ -45,8 +45,6 @@
nsHttpDigestAuth::nsHttpDigestAuth()
{
NS_INIT_ISUPPORTS();
mVerifier = do_GetService(SIGNATURE_VERIFIER_CONTRACTID);
mGotVerifier = (mVerifier != nsnull);

View File

@ -128,8 +128,6 @@ nsHttpHandler::nsHttpHandler()
, mUseCache(PR_TRUE)
, mSendSecureXSiteReferrer(PR_TRUE)
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
gHttpLog = PR_NewLogModule("nsHttp");
#endif

View File

@ -333,7 +333,7 @@ public:
NS_FORWARD_NSIPROXIEDPROTOCOLHANDLER (nsHttpHandler::get()->)
NS_FORWARD_NSIHTTPPROTOCOLHANDLER (nsHttpHandler::get()->)
nsHttpsHandler() { NS_INIT_ISUPPORTS(); }
nsHttpsHandler() { }
virtual ~nsHttpsHandler() { }
nsresult Init();

View File

@ -149,8 +149,6 @@ nsHttpPipeline::nsHttpPipeline()
, mLock(nsnull)
, mStatus(NS_OK)
{
NS_INIT_ISUPPORTS();
memset(mTransactionQ, 0, sizeof(PRUint32) * NS_HTTP_MAX_PIPELINED_REQUESTS);
memset(mTransactionFlags, 0, sizeof(PRUint32) * NS_HTTP_MAX_PIPELINED_REQUESTS);
}

View File

@ -107,8 +107,6 @@ nsHttpTransaction::nsHttpTransaction(nsIStreamListener *listener,
{
LOG(("Creating nsHttpTransaction @%x\n", this));
NS_INIT_ISUPPORTS();
NS_PRECONDITION(listener, "null listener");
}

View File

@ -70,8 +70,6 @@ nsJARChannel::nsJARChannel()
, mInitiator(nsnull)
#endif
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
//
// Initialize the global PRLogModule for socket transport logging

View File

@ -58,7 +58,6 @@ static NS_DEFINE_CID(kZipReaderCacheCID, NS_ZIPREADERCACHE_CID);
nsJARProtocolHandler::nsJARProtocolHandler()
{
NS_INIT_ISUPPORTS();
}
nsresult

View File

@ -32,7 +32,6 @@
nsJARURI::nsJARURI()
: mJAREntry(nsnull)
{
NS_INIT_ISUPPORTS();
}
nsJARURI::~nsJARURI()

View File

@ -54,7 +54,6 @@ static NS_DEFINE_CID(kPrefServiceCID, NS_PREF_CID);
////////////////////////////////////////////////////////////////////////////////
nsKeywordProtocolHandler::nsKeywordProtocolHandler() {
NS_INIT_ISUPPORTS();
}
nsresult

View File

@ -103,8 +103,6 @@ nsResURL::GetFile(nsIFile **result)
nsResProtocolHandler::nsResProtocolHandler()
: mSubstitutions(32)
{
NS_INIT_ISUPPORTS();
#if defined(PR_LOGGING)
gResLog = PR_NewLogModule("nsResProtocol");
#endif

View File

@ -34,7 +34,6 @@
// nsViewSourceChannel methods
nsViewSourceChannel::nsViewSourceChannel() : mIsDocument(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
nsViewSourceChannel::~nsViewSourceChannel()

Some files were not shown because too many files have changed in this diff Show More