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);