VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/vboxdeps.cpp@ 102174

Last change on this file since 102174 was 102174, checked in by vboxsync, 6 months ago

libs/xpcom: Remove more unused code, bugref:10545

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/* The usual story: drag stuff from the libraries into the link. */
2
3
4#include <plstr.h>
5#include <prio.h>
6#include <nsDeque.h>
7#include <nsHashSets.h>
8#include <xptcall.h>
9#include <nsProxyRelease.h>
10#include "xpcom/proxy/src/nsProxyEventPrivate.h"
11#include "nsTraceRefcnt.h"
12#include "nsDebug.h"
13#include "nsString.h"
14
15uintptr_t deps[] =
16{
17 (uintptr_t)PL_strncpy,
18 (uintptr_t)PL_strncpyz,
19 (uintptr_t)PL_HashString,
20 (uintptr_t)PR_Close,
21 (uintptr_t)NS_ProxyRelease,
22 (uintptr_t)nsTraceRefcnt::LogRelease,
23 (uintptr_t)nsDebug::Assertion,
24 0
25};
26
27class foobardep : public nsXPTCStubBase
28{
29public:
30 NS_IMETHOD_(nsrefcnt) AddRef(void)
31 {
32 return 1;
33 }
34
35 NS_IMETHOD_(nsrefcnt) Release(void)
36 {
37 return 0;
38 }
39
40 NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
41 {
42 (void)info;
43 return 0;
44 }
45
46 // call this method and return result
47 NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
48 {
49 (void)methodIndex;
50 (void)info;
51 (void)params;
52 return 0;
53 }
54
55};
56
57
58
59void foodep(void)
60{
61 nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
62 a->Init(123);
63 nsDeque *b = new nsDeque();
64
65 //nsXPTCStubBase
66 nsProxyEventObject *c = new nsProxyEventObject();
67 c->Release();
68
69 foobardep *d = new foobardep();
70 nsXPTCStubBase *e = d;
71 e->Release();
72
73 // Dragged in by TestCRT.
74 nsAutoString t1;
75 t1.AssignWithConversion(NULL);
76}
77
78
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use