I am not sure why there are two versions. But is that possible to convert to the OS charset instead of AssignWithConversion? If the conversion fails then the name has to be hashed.
nsresult NS_MsgHashIfNecessary(nsCAutoString &name) { + nsAutoString autoStr; + autoStr.AssignWithConversion(name); + nsresult rv = NS_MsgHashAutoStringIfNecessary(autoStr);
I am not sure why there are two versions. But is that possible to convert to the rsion? If the conversion fails then the
OS charset instead of AssignWithConve
name has to be hashed.
nsresult NS_MsgHashIfNec essary( nsCAutoString &name) AssignWithConve rsion(name) ; tringIfNecessar y(autoStr) ;
{
+ nsAutoString autoStr;
+ autoStr.
+ nsresult rv = NS_MsgHashAutoS