mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
parent
e40084da9d
commit
0934a8bda2
@ -25,7 +25,7 @@
|
||||
|
||||
#include "nsConsoleMessage.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS(nsConsoleMessage, NS_GET_IID(nsIConsoleMessage));
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsConsoleMessage, nsIConsoleMessage);
|
||||
|
||||
nsConsoleMessage::nsConsoleMessage()
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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)) {
|
||||
|
@ -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); }
|
||||
|
@ -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()
|
||||
|
@ -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*
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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";
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user