fix for #45797 - fix NS_IMPL_ISUPPORTS consumers

r=dveditz a=self
This commit is contained in:
alecf%netscape.com 2000-11-17 03:41:41 +00:00
parent e40084da9d
commit 0934a8bda2
10 changed files with 12 additions and 12 deletions

View File

@ -25,7 +25,7 @@
#include "nsConsoleMessage.h"
NS_IMPL_THREADSAFE_ISUPPORTS(nsConsoleMessage, NS_GET_IID(nsIConsoleMessage));
NS_IMPL_THREADSAFE_ISUPPORTS1(nsConsoleMessage, nsIConsoleMessage);
nsConsoleMessage::nsConsoleMessage()
{

View File

@ -33,7 +33,7 @@
#include "nsConsoleService.h"
#include "nsConsoleMessage.h"
NS_IMPL_THREADSAFE_ISUPPORTS(nsConsoleService, NS_GET_IID(nsIConsoleService));
NS_IMPL_THREADSAFE_ISUPPORTS1(nsConsoleService, nsIConsoleService);
nsConsoleService::nsConsoleService()
: mCurrent(0), mFull(PR_FALSE), mListening(PR_FALSE), mLock(nsnull)

View File

@ -81,7 +81,7 @@ nsNativeComponentLoader::~nsNativeComponentLoader()
delete mDllStore;
}
NS_IMPL_ISUPPORTS(nsNativeComponentLoader, NS_GET_IID(nsIComponentLoader));
NS_IMPL_ISUPPORTS1(nsNativeComponentLoader, nsIComponentLoader);
NS_IMETHODIMP
nsNativeComponentLoader::GetFactory(const nsIID & aCID,

View File

@ -719,7 +719,7 @@ public :
static NS_DEFINE_CID(kUnicharUtilCID, NS_UNICHARUTIL_CID);
static nsICaseConversion * gCaseConv = 0;
NS_IMPL_ISUPPORTS(HandleCaseConversionShutdown3, NS_GET_IID(nsIShutdownListener));
NS_IMPL_ISUPPORTS1(HandleCaseConversionShutdown3, nsIShutdownListener);
nsresult HandleCaseConversionShutdown3::OnShutdown(const nsCID& cid, nsISupports* service) {
if (cid.Equals(kUnicharUtilCID)) {

View File

@ -54,7 +54,7 @@ nsBinaryOutputStream::nsBinaryOutputStream(nsIOutputStream* aStream): mOutputStr
NS_INIT_REFCNT();
}
NS_IMPL_ISUPPORTS(nsBinaryOutputStream, NS_GET_IID(nsIBinaryOutputStream))
NS_IMPL_ISUPPORTS1(nsBinaryOutputStream, nsIBinaryOutputStream)
NS_IMETHODIMP
nsBinaryOutputStream::Flush() { return mOutputStream->Flush(); }
@ -230,7 +230,7 @@ nsBinaryOutputStream::WriteString(nsString* aString)
nsBinaryInputStream::nsBinaryInputStream(nsIInputStream* aStream): mInputStream(aStream) { NS_INIT_REFCNT(); }
NS_IMPL_ISUPPORTS(nsBinaryInputStream, NS_GET_IID(nsIBinaryInputStream))
NS_IMPL_ISUPPORTS1(nsBinaryInputStream, nsIBinaryInputStream)
NS_IMETHODIMP
nsBinaryInputStream::Available(PRUint32* aResult) { return mInputStream->Available(aResult); }

View File

@ -233,7 +233,7 @@ class nsDirEnumerator : public nsISimpleEnumerator
nsCOMPtr<nsILocalFile> mNext;
};
NS_IMPL_ISUPPORTS(nsDirEnumerator, NS_GET_IID(nsISimpleEnumerator));
NS_IMPL_ISUPPORTS1(nsDirEnumerator, nsISimpleEnumerator);
nsLocalFile::nsLocalFile()

View File

@ -53,7 +53,7 @@ static NS_DEFINE_IID(kProxyObject_Identity_Class_IID, NS_PROXYEVENT_IDENTITY_CLA
//////////////////////////////////////////////////////////////////////////////////////////////////
// nsProxyEventClass
//////////////////////////////////////////////////////////////////////////////////////////////////
NS_IMPL_THREADSAFE_ISUPPORTS(nsProxyEventClass, kProxyEventClassIID)
NS_IMPL_THREADSAFE_ISUPPORTS1(nsProxyEventClass, nsProxyEventClass)
// static
nsProxyEventClass*

View File

@ -72,7 +72,7 @@ nsTestXPCFoo::~nsTestXPCFoo()
{
}
NS_IMPL_ISUPPORTS(nsTestXPCFoo, NS_GET_IID(nsITestProxy))
NS_IMPL_ISUPPORTS1(nsTestXPCFoo, nsITestProxy)
NS_IMETHODIMP nsTestXPCFoo::Test(PRInt32 p1, PRInt32 p2, PRInt32* retval)
{

View File

@ -38,7 +38,7 @@ class TestDynamicClassImpl: public ITestClass {
void Test();
};
NS_IMPL_ISUPPORTS(TestDynamicClassImpl, NS_GET_IID(ITestClass));
NS_IMPL_ISUPPORTS1(TestDynamicClassImpl, ITestClass);
void TestDynamicClassImpl::Test() {
cout << "hello, dynamic world!\n";

View File

@ -75,7 +75,7 @@ MyServiceFactory* gFact = NULL;
////////////////////////////////////////////////////////////////////////////////
// MyService Implementation
NS_IMPL_ISUPPORTS(MyService, NS_GET_IID(IMyService));
NS_IMPL_ISUPPORTS1(MyService, IMyService);
MyService::MyService(nsISupports* outer)
{
@ -102,7 +102,7 @@ MyService::Doit(void)
////////////////////////////////////////////////////////////////////////////////
// MyServiceFactory Implementation
NS_IMPL_ISUPPORTS(MyServiceFactory, NS_GET_IID(nsIFactory));
NS_IMPL_ISUPPORTS1(MyServiceFactory, nsIFactory);
MyServiceFactory::MyServiceFactory(void)
: mStarted(PR_FALSE), mOutstandingInstances(0)