bug 313956: expand installer .exe contents to make complete mar. r=ted.
[gecko.git] / xpcom / tests / SizeTest05.cpp
blob1307b1c26ca4a17856dc49515e50863ed4b21154
1 // Test05.cpp
3 #include "nsIDOMNode.h"
4 #include "nsCOMPtr.h"
6 NS_DEF_PTR(nsIDOMNode);
8 /*
9 Windows:
10 raw, nsCOMPtr 21 bytes
12 Macintosh:
13 Raw, nsCOMPtr 64 bytes
16 class Test05_Raw
18 public:
19 Test05_Raw();
20 ~Test05_Raw();
22 void /*nsresult*/ GetNode( nsIDOMNode** aNode );
24 private:
25 nsIDOMNode* mNode;
28 Test05_Raw::Test05_Raw()
29 : mNode(0)
31 // nothing else to do here
34 Test05_Raw::~Test05_Raw()
36 NS_IF_RELEASE(mNode);
39 void // nsresult
40 Test05_Raw::GetNode( nsIDOMNode** aNode )
41 // m64, w21
43 // if ( !aNode )
44 // return NS_ERROR_NULL_POINTER;
46 *aNode = mNode;
47 NS_IF_ADDREF(*aNode);
49 // return NS_OK;
54 class Test05_nsCOMPtr
56 public:
57 void /*nsresult*/ GetNode( nsIDOMNode** aNode );
59 private:
60 nsCOMPtr<nsIDOMNode> mNode;
63 void // nsresult
64 Test05_nsCOMPtr::GetNode( nsIDOMNode** aNode )
65 // m64, w21
67 // if ( !aNode )
68 // return NS_ERROR_NULL_POINTER;
70 *aNode = mNode;
71 NS_IF_ADDREF(*aNode);
73 // return NS_OK;