VirtualBox

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

Last change on this file was 103505, checked in by vboxsync, 3 months ago

libs/xpcom: Fix some unused variable warnings, bugref:3409

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

© 2023 Oracle
ContactPrivacy policyTerms of Use