nsStringKey hashKey(key);
nsCStringKey hashKey(key);
nsMsgAccountManager::createKeyedIdentity(const char* key,                                         nsIMsgIdentity ** aIdentity){  nsresult rv;  nsCOMPtr<nsIMsgIdentity> identity;  rv = nsComponentManager::CreateInstance(NS_MSGIDENTITY_PROGID,                                          nsnull,                                          NS_GET_IID(nsIMsgIdentity),                                          getter_AddRefs(identity));  if (NS_FAILED(rv)) return rv;    identity->SetKey(NS_CONST_CAST(char *,key));    nsStringKey hashKey(key);  // addref for the hash table  nsISupports* idsupports = identity;  NS_ADDREF(idsupports);  m_identities.Put(&hashKey, (void *)idsupports);  *aIdentity = identity;  NS_ADDREF(*aIdentity);    return NS_OK;}