VirtualBox

Changeset 11863 in vbox for trunk/src


Ignore:
Timestamp:
Aug 30, 2008 12:38:44 AM (16 years ago)
Author:
vboxsync
Message:

xpcom18a4: Yet another shot at the vtable for nsXPTCStubBase (ZTV14nsXPTCStubBase).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/vboxdeps.cpp

    r11860 r11863  
    2121};
    2222
     23class foobardep : public nsXPTCStubBase
     24{
     25public:
     26    NS_IMETHOD_(nsrefcnt) AddRef(void)
     27    {
     28        return 1;
     29    }
     30
     31    NS_IMETHOD_(nsrefcnt) Release(void)
     32    {
     33        return 0;
     34    }
     35
     36    NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
     37    {
     38        (void)info;
     39        return 0;
     40    }
     41
     42    // call this method and return result
     43    NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
     44    {
     45        (void)methodIndex;
     46        (void)info;
     47        (void)params;
     48        return 0;
     49    }
     50
     51};
     52
     53
     54
    2355void foodep(void)
    2456{
     
    3062    nsProxyEventObject *c = new nsProxyEventObject();
    3163    c->Release();
     64
     65    foobardep *d = new foobardep();
     66    nsXPTCStubBase *e = d;
     67    e->Release();
    3268}
    3369
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette