NS_IMETHODIMP nsRegistryNode::GetKey( nsRegistryKey *r_key ) { nsresult rv = NS_OK; if (r_key == nsnull) return NS_ERROR_NULL_POINTER; *r_key = mChildKey;
NS_IMETHODIMP nsRegistry::GetKey(nsRegistryKey baseKey, const PRUnichar *keyname, nsRegistryKey *_retval) { if ( !keyname || !_retval ) return NS_ERROR_NULL_POINTER;  nsString name( nsSubsumeStr( NS_CONST_CAST(PRUnichar*,keyname), PR_FALSE ) ); char* utf8name = name.ToNewUTF8String(); if ( !utf8name ) return NS_ERROR_OUT_OF_MEMORY;  nsresult rv = GetSubtree( baseKey, utf8name, _retval );  Recycle( utf8name );
NS_IMETHODIMP nsRegistryNode::GetKey( nsRegistryKey *r_key ) {    nsresult rv = NS_OK;    if (r_key == nsnull) return NS_ERROR_NULL_POINTER;    *r_key = mChildKey;    return rv;}