mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 12:59:23 -10:00
QI, don't case! Not part of default build.
This commit is contained in:
1 parent
34ca027b0e
commit
f88b58fa73
4 files changed
+12
-9
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user