nsAutoString str = mValue.mString;
nsAutoString str(mValue.mString);
inline PRInt32 nsHTMLValue::GetIntValue(void) const{  NS_ASSERTION((mUnit == eHTMLUnit_String) ||               (mUnit == eHTMLUnit_Integer) ||                (mUnit == eHTMLUnit_Enumerated) ||               (mUnit == eHTMLUnit_Proportional), "not an int value");  if ((mUnit == eHTMLUnit_Integer) ||       (mUnit == eHTMLUnit_Enumerated) ||      (mUnit == eHTMLUnit_Proportional)) {    return mValue.mInt;  }  else if (mUnit == eHTMLUnit_String) {    if (mValue.mString) {      PRInt32 err=0;      nsAutoString str = mValue.mString; // XXX copy. new string APIs will make this better, right?      return str.ToInteger(&err);    }  }  return 0;}