nsStringKey key(aName);
nsAutoString keyStr(aName); nsStringKey key(keyStr);
nsPresState::GetStatePropertyAsSupports(const nsString& aName, nsISupports** aResult){  // Retrieve from hashtable.  nsCOMPtr<nsISupports> supp;  nsStringKey key(aName);  if (mPropertyTable)    supp = dont_AddRef(NS_STATIC_CAST(nsISupports*, mPropertyTable->Get(&key)));  *aResult = supp;  NS_IF_ADDREF(*aResult);  return NS_OK;}