зеркало из https://github.com/mozilla/gecko-dev.git
QI, don't case! Not part of default build.
Original committer: pedemont%us.ibm.com Original revision: 1.2 Original date: 2004/09/15 19:47:19
This commit is contained in:
Родитель
495bd0db70
Коммит
c17fb369fb
|
@ -182,7 +182,8 @@ XPCOM_NATIVE(NS_1NewSingletonEnumerator) (JNIEnv *env, jclass, jobject aSingleto
|
|||
|
||||
nsISupports* singleton;
|
||||
if (IsXPTCStub(inst))
|
||||
singleton = (nsISupports*) GetXPTCStubAddr(inst);
|
||||
GetXPTCStubAddr(inst)->QueryInterface(NS_GET_IID(nsISupports),
|
||||
(void**) &singleton);
|
||||
else {
|
||||
JavaXPCOMInstance* xpcomInst = (JavaXPCOMInstance*) inst;
|
||||
singleton = xpcomInst->GetInstance();
|
||||
|
|
Загрузка…
Ссылка в новой задаче