nsStringKey key(aName);
const nsPromiseFlatString& flatString = PromiseFlatString(aName); nsStringKey key(flatString);
nsPresState::GetStateProperty(const nsAString& aName,			      nsAString& aResult){  aResult.SetLength(0);  // Retrieve from hashtable.  if (mPropertyTable) {    nsStringKey key(aName);    nsCOMPtr<nsISupportsString> supportsStr =            dont_AddRef(NS_STATIC_CAST(nsISupportsString*,                                       mPropertyTable->Get(&key)));    if (supportsStr) {      nsXPIDLCString data;      supportsStr->GetData(getter_Copies(data));      aResult.Append(NS_ConvertUTF8toUCS2(data));    }  }  return NS_OK;}