char ch[100]; sprintf(ch,"%d", aSize); nsAutoString newValue; newValue.AssignWithConversion(ch);
nsAutoString newValue; newValue.AppendInt(aSize);
nsGfxScrollFrameInner::SetAttribute(nsIBox* aBox, nsIAtom* aAtom, nscoord aSize, PRBool aReflow){  // convert to pixels  aSize /= mOnePixel;  // only set the attribute if it changed.  PRInt32 current = GetIntegerAttribute(aBox, aAtom, -1);  if (current != aSize)  {      nsIFrame* frame = nsnull;      aBox->GetFrame(&frame);      nsCOMPtr<nsIContent> content;      frame->GetContent(getter_AddRefs(content));      char ch[100];      sprintf(ch,"%d", aSize);      nsAutoString newValue; newValue.AssignWithConversion(ch);      content->SetAttribute(kNameSpaceID_None, aAtom, newValue, aReflow);      return PR_TRUE;  }  return PR_FALSE;}