Bug 118656 -- clean up in plugin SDK, not part of the build

git-svn-id: svn://10.0.0.236/trunk@132133 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
av%netscape.com
2002-10-17 04:37:12 +00:00
parent df3dba60ad
commit 8f7ae49d21
3 changed files with 143 additions and 142 deletions

View File

@@ -38,13 +38,12 @@
#include "plugin.h"
#include "nsIServiceManager.h"
#include "nsIMemory.h"
#include "nsISupportsUtils.h" // this is where some useful macros defined
// service manager which will give the access to all public browser services
// we will use memory service as an illustration
nsIServiceManager * gServiceManager = NULL;
//static NS_DEFINE_IID(kMemoryCID, NS_MEMORY_CID);
// Unix needs this
#ifdef XP_UNIX
#define MIME_TYPES_HANDLED "application/simple-plugin"
@@ -69,7 +68,7 @@ NPError NS_PluginInitialize()
NPN_GetValue(NULL, NPNVserviceManager, &sm);
// Mozilla returns nsIServiceManager so we can use it directly, doing QI on
// Mozilla returns nsIServiceManager so we can use it directly; doing QI on
// nsISupports here can still be more appropriate in case something is changed
// in the future so we don't need to do casting of any sort.
if(sm) {