Remove users of deprecated, no-op, NS_INIT_ISUPPORTS macro from tree. b=178643 r+sr=bryner

git-svn-id: svn://10.0.0.236/trunk@151780 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2004-01-23 23:12:44 +00:00
parent 9c82ab27aa
commit 707d55e1d1
64 changed files with 1 additions and 83 deletions

View File

@@ -53,7 +53,6 @@
AppDirServiceProvider::AppDirServiceProvider(const nsACString& productDirName)
{
NS_INIT_ISUPPORTS();
mProductDirName.Assign(productDirName);
}

View File

@@ -66,7 +66,6 @@ NS_IMPL_ISUPPORTS1(nsConsoleListener, nsIConsoleListener)
nsConsoleListener::nsConsoleListener()
{
NS_INIT_ISUPPORTS();
}
nsConsoleListener::~nsConsoleListener()

View File

@@ -50,7 +50,6 @@
CocoaPromptService::CocoaPromptService()
{
NS_INIT_ISUPPORTS();
}
CocoaPromptService::~CocoaPromptService()

View File

@@ -58,7 +58,6 @@ NS_IMPL_ISUPPORTS2(ContentClickListener, nsIDOMMouseListener, nsIDOMEventListene
ContentClickListener::ContentClickListener(id aBrowserController)
:mBrowserController(aBrowserController)
{
NS_INIT_ISUPPORTS();
}
ContentClickListener::~ContentClickListener()

View File

@@ -65,7 +65,6 @@ public:
, mUserData(inUserData)
, mURI(inURI)
{
NS_INIT_ISUPPORTS();
[mLoadListener retain];
}
@@ -129,7 +128,6 @@ protected:
RemoteURILoadManager::RemoteURILoadManager()
{
NS_INIT_ISUPPORTS();
}
RemoteURILoadManager::~RemoteURILoadManager()

View File

@@ -50,7 +50,6 @@
SecurityDialogs::SecurityDialogs()
{
NS_INIT_ISUPPORTS();
}
SecurityDialogs::~SecurityDialogs()

View File

@@ -70,7 +70,6 @@ nsHeaderSniffer::nsHeaderSniffer(nsIWebBrowserPersist* aPersist, nsIFile* aFile,
, mBypassCache(aBypassCache)
, mFilterView(aFilterView)
{
NS_INIT_ISUPPORTS();
}
nsHeaderSniffer::~nsHeaderSniffer()

View File

@@ -61,7 +61,6 @@
CHBrowserListener::CHBrowserListener(CHBrowserView* aView)
: mView(aView), mContainer(nsnull), mIsModal(PR_FALSE), mChromeFlags(0)
{
NS_INIT_ISUPPORTS();
mListeners = [[NSMutableArray alloc] init];
}

View File

@@ -106,7 +106,6 @@ NS_IMPL_ISUPPORTS2(CHClickListener, nsIDOMMouseListener, nsIDOMEventListener)
CHClickListener::CHClickListener()
{
NS_INIT_ISUPPORTS();
}
CHClickListener::~CHClickListener()

View File

@@ -67,7 +67,6 @@ protected:
DownloadListenerFactory::DownloadListenerFactory()
: mControllerFactory(nil)
{
NS_INIT_ISUPPORTS();
mControllerFactory = [[ChimeraDownloadControllerFactory alloc] init];
}

View File

@@ -45,7 +45,6 @@ CHDownloader::CHDownloader()
, mDownloadDisplay(nil)
, mIsFileSave(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
CHDownloader::~CHDownloader()

View File

@@ -68,7 +68,6 @@ public:
HistoryRDFObserver(HistoryDataSource* dataSource)
: mHistoryDataSource(dataSource)
{
NS_INIT_ISUPPORTS();
}
virtual ~HistoryRDFObserver() { }

View File

@@ -59,7 +59,6 @@
CHBrowserListener::CHBrowserListener(CHBrowserView* aView)
: mView(aView), mContainer(nsnull), mIsModal(PR_FALSE), mChromeFlags(0)
{
NS_INIT_ISUPPORTS();
mListeners = [[NSMutableArray alloc] init];
}

View File

@@ -63,7 +63,6 @@ PRBool CHBrowserService::sCanTerminate = PR_FALSE;
// CHBrowserService implementation
CHBrowserService::CHBrowserService()
{
NS_INIT_ISUPPORTS();
}
CHBrowserService::~CHBrowserService()

View File

@@ -108,7 +108,6 @@ NS_IMPL_ISUPPORTS2(CHClickListener, nsIDOMMouseListener, nsIDOMEventListener)
CHClickListener::CHClickListener()
{
NS_INIT_ISUPPORTS();
}
CHClickListener::~CHClickListener()

View File

@@ -69,7 +69,6 @@ protected:
DownloadListenerFactory::DownloadListenerFactory()
: mControllerFactory(nil)
{
NS_INIT_ISUPPORTS();
mControllerFactory = [[ChimeraDownloadControllerFactory alloc] init];
}

View File

@@ -57,7 +57,6 @@ CHDownloader::CHDownloader(DownloadControllerFactory* inControllerFactory)
, mDownloadDisplay(nil)
, mIsFileSave(PR_FALSE)
{
NS_INIT_ISUPPORTS();
[mControllerFactory retain];
}

View File

@@ -66,7 +66,6 @@ nsHeaderSniffer::nsHeaderSniffer(nsIWebBrowserPersist* aPersist, nsIFile* aFile,
, mFilterView(aFilterView)
, mFilterList(aFilterList)
{
NS_INIT_ISUPPORTS();
}
nsHeaderSniffer::~nsHeaderSniffer()

View File

@@ -30,7 +30,6 @@
EmbedEventListener::EmbedEventListener(void)
{
NS_INIT_ISUPPORTS();
mOwner = nsnull;
}

View File

@@ -47,7 +47,6 @@
EmbedProgress::EmbedProgress(void)
{
NS_INIT_ISUPPORTS();
mOwner = nsnull;
mSkipOnState = mDownloadDocument = 0;
}

View File

@@ -41,7 +41,6 @@ NS_IMPL_ISUPPORTS1(EmbedStream, nsIInputStream)
EmbedStream::EmbedStream()
{
NS_INIT_ISUPPORTS();
mOwner = nsnull;
mOffset = 0;
mDoingStream = PR_FALSE;

View File

@@ -51,7 +51,6 @@ PtWidget_t *EmbedWindow::sTipWindow = nsnull;
EmbedWindow::EmbedWindow(void)
{
NS_INIT_ISUPPORTS();
mOwner = nsnull;
mVisibility = PR_FALSE;
mIsModal = PR_FALSE;

View File

@@ -29,7 +29,6 @@
EmbedWindowCreator::EmbedWindowCreator(void)
{
NS_INIT_ISUPPORTS();
}
EmbedWindowCreator::~EmbedWindowCreator()

View File

@@ -84,7 +84,6 @@ NS_IMPL_ISUPPORTS2(CPromptService, nsIPromptService, nsPIPromptService)
CPromptService::CPromptService() :
mWWatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1")) {
NS_INIT_ISUPPORTS();
}
CPromptService::~CPromptService() {
@@ -386,7 +385,6 @@ NS_IMPL_ISUPPORTS1(CPromptServiceFactory, nsIFactory)
CPromptServiceFactory::CPromptServiceFactory() {
NS_INIT_ISUPPORTS();
}
CPromptServiceFactory::~CPromptServiceFactory() {

View File

@@ -66,8 +66,6 @@ nsPrintSettings::nsPrintSettings() :
mPrintPageDelay(500),
mPrintSilent(PR_FALSE)
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
nscoord halfInch = NS_INCHES_TO_TWIPS(0.5);
mMargin.SizeTo(halfInch, halfInch, halfInch, halfInch);

View File

@@ -53,7 +53,6 @@
#include <photon/PtWebClient.h>
nsUnknownContentTypeHandler::nsUnknownContentTypeHandler( ) {
NS_INIT_ISUPPORTS();
}
nsUnknownContentTypeHandler::~nsUnknownContentTypeHandler( ) { }
@@ -153,7 +152,6 @@ PtWidget_t *nsUnknownContentTypeHandler::GetWebBrowser(nsIDOMWindow *aWindow)
NS_IMPL_ISUPPORTS2(nsWebProgressListener, nsIWebProgressListener, nsISupportsWeakReference)
nsWebProgressListener::nsWebProgressListener() {
NS_INIT_ISUPPORTS();
}
nsWebProgressListener::~nsWebProgressListener() { }

View File

@@ -137,8 +137,6 @@ nsLayoutDebuggingTools::nsLayoutDebuggingTools()
mCrossingEventDumping(PR_FALSE),
mReflowCounts(PR_FALSE)
{
NS_INIT_ISUPPORTS();
NewURILoaded();
}

View File

@@ -78,7 +78,6 @@ nsPolicyReference::nsPolicyReference()
: mFlags (0),
mError (0)
{
NS_INIT_ISUPPORTS();
}
nsPolicyReference::~nsPolicyReference()

View File

@@ -73,7 +73,6 @@ const PRInt32 kFirstDirSize=8;
mozMySpell::mozMySpell()
{
NS_INIT_ISUPPORTS();
}
mozMySpell::~mozMySpell()

View File

@@ -42,7 +42,6 @@ NS_IMPL_ISUPPORTS1(mozGenericWordUtils, mozISpellI18NUtil)
mozGenericWordUtils::mozGenericWordUtils()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@@ -44,7 +44,6 @@ NS_IMPL_ISUPPORTS1(mozSpellChecker, nsISpellChecker)
mozSpellChecker::mozSpellChecker()
{
NS_INIT_ISUPPORTS();
mDictionaryName.SetLength(0);
nsresult rv;

View File

@@ -44,7 +44,6 @@ NS_IMPL_ISUPPORTS1(mozSpellI18NManager, mozISpellI18NManager)
mozSpellI18NManager::mozSpellI18NManager()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}

View File

@@ -9,7 +9,6 @@ mozSqlConnection::mozSqlConnection()
mShutdown(PR_FALSE),
mWaiting(PR_FALSE)
{
NS_INIT_ISUPPORTS();
mExecLock = PR_NewLock();
}

View File

@@ -6,7 +6,6 @@ mozSqlRequest::mozSqlRequest(mozISqlConnection* aConnection)
mIsQuery(PR_TRUE),
mStatus(mozISqlRequest::STATUS_NONE)
{
NS_INIT_ISUPPORTS();
mConnection = do_GetWeakReference(aConnection);
}

View File

@@ -31,7 +31,6 @@ mozSqlResult::mozSqlResult(mozISqlConnection* aConnection,
mCanUpdate(-1),
mCanDelete(-1)
{
NS_INIT_ISUPPORTS();
}
nsresult
@@ -1177,7 +1176,6 @@ mozSqlResultEnumerator::mozSqlResultEnumerator(mozSqlResult* aResult)
mCurrentIndex(-1),
mCurrentRow(nsnull)
{
NS_INIT_ISUPPORTS();
NS_ADDREF(mResult);
mBuffer = Row::Create(mResult->mAllocator, nsnull, mResult->mColumnInfo);
@@ -1778,7 +1776,6 @@ mozSqlResultStream::mozSqlResultStream(mozSqlResult* aResult)
mLength(0),
mPosition(0)
{
NS_INIT_ISUPPORTS();
NS_ADDREF(mResult);
}

View File

@@ -33,7 +33,6 @@ nsIRDFResource* mozSqlService::kSQL_Database;
mozSqlService::mozSqlService()
: mConnectionCache(nsnull)
{
NS_INIT_ISUPPORTS();
}
mozSqlService::~mozSqlService()

View File

@@ -49,7 +49,6 @@
nsDeviceContextSpecFactoryPh :: nsDeviceContextSpecFactoryPh()
{
NS_INIT_ISUPPORTS();
}
nsDeviceContextSpecFactoryPh :: ~nsDeviceContextSpecFactoryPh()

View File

@@ -58,7 +58,6 @@
nsDeviceContextSpecPh :: nsDeviceContextSpecPh()
{
NS_INIT_ISUPPORTS();
mPC = PpCreatePC();
}
@@ -186,7 +185,6 @@ PpPrintContext_t *nsDeviceContextSpecPh :: GetPrintContext()
//***********************************************************
nsPrinterEnumeratorPh::nsPrinterEnumeratorPh()
{
NS_INIT_ISUPPORTS();
}
nsPrinterEnumeratorPh::~nsPrinterEnumeratorPh()

View File

@@ -72,8 +72,6 @@ NS_IMPL_ISUPPORTS2( nsDrawingSurfacePh, nsIDrawingSurface, nsIDrawingSurfacePh )
nsDrawingSurfacePh :: nsDrawingSurfacePh( )
{
NS_INIT_ISUPPORTS();
mDrawContext = nsnull;
mGC = nsnull;
mWidth = 0;

View File

@@ -61,7 +61,6 @@ static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
nsFontMetricsPh::nsFontMetricsPh()
{
NS_INIT_ISUPPORTS();
mDeviceContext = nsnull;
mFont = nsnull;
@@ -300,7 +299,6 @@ struct nsFontFamily
// The Font Enumerator
nsFontEnumeratorPh::nsFontEnumeratorPh()
{
NS_INIT_ISUPPORTS();
}
NS_IMPL_ISUPPORTS1(nsFontEnumeratorPh, nsIFontEnumerator)

View File

@@ -187,7 +187,6 @@ NS_IMPL_ISUPPORTS1(nsImagePh, nsIImage)
// ----------------------------------------------------------------
nsImagePh :: nsImagePh()
{
NS_INIT_ISUPPORTS();
mImageBits = nsnull;
mWidth = 0;
mHeight = 0;

View File

@@ -48,14 +48,12 @@ class nsRegionPh : public nsIRegion
public:
inline nsRegionPh()
{
NS_INIT_ISUPPORTS();
mRegion = NULL;
mRegionType = eRegionComplexity_empty;
}
inline nsRegionPh(PhTile_t *tiles)
{
NS_INIT_ISUPPORTS();
mRegion = tiles; /* assume ownership */
mRegionType = (mRegion == NULL) ? eRegionComplexity_empty : eRegionComplexity_complex;
}

View File

@@ -62,8 +62,6 @@ NS_IMPL_ISUPPORTS1(nsRenderingContextPh, nsIRenderingContext)
nsRenderingContextPh :: nsRenderingContextPh()
{
NS_INIT_ISUPPORTS();
mGC = nsnull;
mTranMatrix = nsnull;
mClipRegion = nsnull;

View File

@@ -42,7 +42,6 @@
#include "nsPhGfxLog.h"
nsScreenManagerPh :: nsScreenManagerPh( ) {
NS_INIT_ISUPPORTS();
// nothing else to do. I guess we could cache a bunch of information
// here, but we want to ask the device at runtime in case anything
// has changed.

View File

@@ -49,8 +49,6 @@ nsScreenPh :: nsScreenPh ( ) {
PhRid_t rid;
PhRegion_t region;
NS_INIT_ISUPPORTS();
p = NULL;
/* Initialize the data members */

View File

@@ -50,8 +50,6 @@ nsUnicodeToSunIndic::nsUnicodeToSunIndic()
static NS_DEFINE_CID(kLECID, NS_ULE_CID);
nsresult rv;
NS_INIT_ISUPPORTS();
mCtlObj = do_CreateInstance(kLECID, &rv);
if (NS_FAILED(rv)) {

View File

@@ -48,8 +48,6 @@ nsUnicodeToTIS620::nsUnicodeToTIS620()
static NS_DEFINE_CID(kLECID, NS_ULE_CID);
nsresult rv;
NS_INIT_ISUPPORTS();
mCtlObj = do_CreateInstance(kLECID, &rv);
if (NS_FAILED(rv)) {
#ifdef DEBUG_prabhath

View File

@@ -98,7 +98,6 @@ NS_IMPL_ISUPPORTS1(nsUnicodeNormalizer, nsIUnicodeNormalizer)
nsUnicodeNormalizer::nsUnicodeNormalizer()
{
NS_INIT_ISUPPORTS();
}
nsUnicodeNormalizer::~nsUnicodeNormalizer()

View File

@@ -152,8 +152,6 @@ ipcService::ipcService()
: mTransport(nsnull)
, mClientID(0)
{
NS_INIT_ISUPPORTS();
IPC_InitLog(">>>");
}

View File

@@ -96,7 +96,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_IPCIMESSAGEOBSERVER
myIpcMessageObserver() { NS_INIT_ISUPPORTS(); }
myIpcMessageObserver() {}
};
NS_IMPL_ISUPPORTS1(myIpcMessageObserver, ipcIMessageObserver)

View File

@@ -50,7 +50,6 @@
nsMessengerContentHandler::nsMessengerContentHandler()
{
NS_INIT_ISUPPORTS();
}
/* the following macro actually implement addref, release and query interface for our component. */

View File

@@ -106,8 +106,6 @@ NS_IMETHODIMP nsIDNService::Observe(nsISupports *aSubject,
nsIDNService::nsIDNService()
{
NS_INIT_ISUPPORTS();
nsresult rv;
// initialize to the official prefix (RFC 3490 "5. ACE prefix")

View File

@@ -81,7 +81,6 @@ static NS_DEFINE_CID(kCmdLineServiceCID, NS_COMMANDLINE_SERVICE_CID);
//-------------------------------------------------------------------------
nsAppShell::nsAppShell()
{
NS_INIT_ISUPPORTS();
mEventQueue = nsnull;
mFD = -1;
}

View File

@@ -41,7 +41,6 @@ NS_IMPL_ISUPPORTS1(nsBidiKeyboard, nsIBidiKeyboard)
nsBidiKeyboard::nsBidiKeyboard() : nsIBidiKeyboard()
{
NS_INIT_ISUPPORTS();
}
nsBidiKeyboard::~nsBidiKeyboard()

View File

@@ -61,7 +61,6 @@ NS_IMPL_ISUPPORTS_INHERITED1(nsButton, nsWidget, nsIButton)
//-------------------------------------------------------------------------
nsButton::nsButton() : nsWidget(), nsIButton()
{
NS_INIT_ISUPPORTS();
}
//-------------------------------------------------------------------------

View File

@@ -64,7 +64,6 @@ NS_IMPL_RELEASE(nsCheckButton)
nsCheckButton::nsCheckButton() : nsWidget(), nsICheckButton(),
mState(PR_FALSE)
{
NS_INIT_ISUPPORTS();
}
//-------------------------------------------------------------------------

View File

@@ -79,7 +79,6 @@ nsClipboard::nsClipboard()
printf("nsClipboard::nsClipboard()\n");
#endif /* DEBUG_CLIPBOARD */
NS_INIT_ISUPPORTS();
mIgnoreEmptyNotification = PR_FALSE;
mGlobalTransferable = nsnull;
mSelectionTransferable = nsnull;

View File

@@ -60,7 +60,6 @@ NS_IMPL_QUERY_INTERFACE2(nsDragService, nsIDragService, nsIDragSession)
//-------------------------------------------------------------------------
nsDragService::nsDragService()
{
NS_INIT_ISUPPORTS();
mDndWidget = nsnull;
mDndEvent = nsnull;
mNativeCtrl = nsnull;

View File

@@ -55,7 +55,6 @@ nsFilePicker::nsFilePicker()
, mUnicodeEncoder(nsnull)
, mUnicodeDecoder(nsnull)
{
NS_INIT_ISUPPORTS();
mDisplayDirectory = do_CreateInstance("@mozilla.org/file/local;1");
char *path = getenv( "HOME" );
if( path ) {

View File

@@ -54,7 +54,6 @@ NS_IMPL_RELEASE_INHERITED(nsLabel, nsWidget)
//-------------------------------------------------------------------------
nsLabel::nsLabel() : nsWidget(), nsILabel()
{
NS_INIT_ISUPPORTS();
mAlignment = eAlign_Left;
}

View File

@@ -55,7 +55,6 @@ NS_IMPL_ISUPPORTS2(nsSound, nsISound, nsIStreamLoaderObserver)
////////////////////////////////////////////////////////////////////////
nsSound::nsSound()
{
NS_INIT_ISUPPORTS();
mInited = PR_FALSE;
}

View File

@@ -63,7 +63,6 @@ NS_IMPL_RELEASE(nsTextWidget)
//-------------------------------------------------------------------------
nsTextWidget::nsTextWidget() : nsTextHelper()
{
NS_INIT_ISUPPORTS();
mBackground = NS_RGB(124, 124, 124);
}

View File

@@ -55,7 +55,6 @@ NS_IMPL_ISUPPORTS1(nsToolkit,nsIToolkit)
//-------------------------------------------------------------------------
nsToolkit::nsToolkit()
{
NS_INIT_ISUPPORTS();
}

View File

@@ -90,9 +90,6 @@ PRBool nsWidget::sJustGotDeactivated = PR_FALSE;
nsWidget::nsWidget()
{
// XXX Shouldn't this be done in nsBaseWidget?
// NS_INIT_ISUPPORTS();
if (!sLookAndFeel) {
if (NS_OK != nsComponentManager::CreateInstance(kLookAndFeelCID,
nsnull,