VirtualBox

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

Last change on this file since 102364 was 102341, checked in by vboxsync, 12 months ago

libs/xpcom: Replace the uses of PL_strncpyz with RTStrCopyPand get rid of it, bugref:10545 [build fix]

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

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