mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Changing comment in the sample code, this is not part of the build
This commit is contained in:
parent
b7ab92f3d6
commit
cde3c8dd47
@ -69,7 +69,9 @@ NPError NS_PluginInitialize()
|
|||||||
|
|
||||||
NPN_GetValue(NULL, NPNVserviceManager, &sm);
|
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) {
|
if(sm) {
|
||||||
sm->QueryInterface(NS_GET_IID(nsIServiceManager), (void**)&gServiceManager);
|
sm->QueryInterface(NS_GET_IID(nsIServiceManager), (void**)&gServiceManager);
|
||||||
NS_RELEASE(sm);
|
NS_RELEASE(sm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user