From bd5d38618830375ace816f080e8d0b24d1624e73 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 git-svn-id: svn://10.0.0.236/trunk@132091 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/tools/sdk/samples/simple/plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/plugin/tools/sdk/samples/simple/plugin.cpp b/mozilla/modules/plugin/tools/sdk/samples/simple/plugin.cpp index 7b177ce1c7f..07c17d49b0c 100644 --- a/mozilla/modules/plugin/tools/sdk/samples/simple/plugin.cpp +++ b/mozilla/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);