Back to index

lightning-sunbird  0.9+nobinonly
Functions
SizeTest02.cpp File Reference
#include "nsIDOMNode.h"
#include "nsCOMPtr.h"
#include "nsString.h"

Go to the source code of this file.

Functions

 NS_DEF_PTR (nsIDOMNode)
void Test02_Raw00 (nsISupports *aDOMNode, nsString *aResult)
void Test02_Raw01 (nsISupports *aDOMNode, nsString *aResult)
void Test02_nsCOMPtr (nsISupports *aDOMNode, nsString *aResult)

Function Documentation

void Test02_nsCOMPtr ( nsISupports *  aDOMNode,
nsString aResult 
)

Definition at line 82 of file SizeTest02.cpp.

       {
              nsresult status;
              nsCOMPtr<nsIDOMNode> node = do_QueryInterface(aDOMNode, &status);
              
              if ( node )
                     node->GetNodeName(*aResult);

//            return status;
       }

Here is the call graph for this function:

void Test02_Raw00 ( nsISupports *  aDOMNode,
nsString aResult 
)

Definition at line 42 of file SizeTest02.cpp.

       {
// -- the following code is assumed, but is commented out so we compare only
//             the relevent generated code

//            if ( !aDOMNode )
//                   return NS_ERROR_NULL_POINTER;

              nsIDOMNode* node = 0;
              nsresult status = aDOMNode->QueryInterface(NS_GET_IID(nsIDOMNode), (void**)&node);
              if ( NS_SUCCEEDED(status) )
                     {
                            node->GetNodeName(*aResult);
                     }

              NS_IF_RELEASE(node);

//            return status;
       }
void Test02_Raw01 ( nsISupports *  aDOMNode,
nsString aResult 
)

Definition at line 64 of file SizeTest02.cpp.

       {
//            if ( !aDOMNode )
//                   return NS_ERROR_NULL_POINTER;

              nsIDOMNode* node;
                nsresult status = aDOMNode->QueryInterface(NS_GET_IID(nsIDOMNode), (void**)&node);
              if ( NS_SUCCEEDED(status) )
                     {
                            node->GetNodeName(*aResult);
                            NS_RELEASE(node);
                     }

//            return status;
       }