- Timestamp:
- Aug 30, 2008 12:38:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/vboxdeps.cpp
r11860 r11863 21 21 }; 22 22 23 class foobardep : public nsXPTCStubBase 24 { 25 public: 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 23 55 void foodep(void) 24 56 { … … 30 62 nsProxyEventObject *c = new nsProxyEventObject(); 31 63 c->Release(); 64 65 foobardep *d = new foobardep(); 66 nsXPTCStubBase *e = d; 67 e->Release(); 32 68 } 33 69
Note:
See TracChangeset
for help on using the changeset viewer.