Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136019 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -51,7 +51,6 @@
|
||||
nsScriptablePeer::nsScriptablePeer(CPlugin* aPlugin)
|
||||
{
|
||||
|
||||
NS_INIT_ISUPPORTS();
|
||||
mPlugin = aPlugin;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -47,9 +47,6 @@ nsSanePluginFactoryImpl::nsSanePluginFactoryImpl( const nsCID &aClass,
|
||||
#ifdef DEBUG
|
||||
printf("nsSanePluginFactoryImpl::nsSanePluginFactoryImpl()\n");
|
||||
#endif
|
||||
|
||||
NS_INIT_ISUPPORTS();
|
||||
|
||||
}
|
||||
|
||||
nsSanePluginFactoryImpl::~nsSanePluginFactoryImpl()
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user