nsHTMLAreaElement::GetHash(nsString& aHash)
nsHTMLAreaElement::GetHash(nsAWritableString& aHash)
nsHTMLAreaElement::GetHash(nsString& aHash){  nsAutoString href;  nsIURI *uri;  nsresult result = NS_OK;  result = GetHref(href);  if (NS_OK == result) {    result = NS_NewURI(&uri, href);    if (NS_OK == result) {      char *ref;      nsIURL* url;      result = uri->QueryInterface(NS_GET_IID(nsIURL), (void**)&url);      if (NS_SUCCEEDED(result)) {        result = url->GetRef(&ref);        NS_RELEASE(url);      }      if (result == NS_OK && (nsnull != ref) && ('\0' != *ref)) {        aHash.AssignWithConversion("#");        aHash.AppendWithConversion(ref);        nsCRT::free(ref);      }      else {        aHash.SetLength(0);      }      NS_RELEASE(uri);    }  }  return result;}