From cde3c8dd47d73e6943cb5d96e3d4861b55da3725 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Wed, 16 Oct 2002 21:05:29 +0000 Subject: [PATCH] Changing comment in the sample code, this is not part of the build --- modules/plugin/tools/sdk/samples/simple/plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/plugin/tools/sdk/samples/simple/plugin.cpp b/modules/plugin/tools/sdk/samples/simple/plugin.cpp index 7b177ce1c7f8..07c17d49b0cf 100644 --- a/modules/plugin/tools/sdk/samples/simple/plugin.cpp +++ b/modules/plugin/tools/sdk/samples/simple/plugin.cpp @@ -69,7 +69,9 @@ NPError NS_PluginInitialize() NPN_GetValue(NULL, NPNVserviceManager, &sm); - // Mozilla returns nsIServiceManagerObsolete which can be queried for nsIServiceManager + // 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) { sm->QueryInterface(NS_GET_IID(nsIServiceManager), (void**)&gServiceManager); NS_RELEASE(sm);