NS_PRECONDITION(aNewFrame, "null OUT ptr"); if (nsnull == aNewFrame) { return NS_ERROR_NULL_POINTER; } nsFileControlFrame* it = new (aPresShell) nsFileControlFrame(); if (!it) { return NS_ERROR_OUT_OF_MEMORY; } *aNewFrame = it; return NS_OK;
return new (aPresShell) nsFileControlFrame();
NS_NewFileControlFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame){  NS_PRECONDITION(aNewFrame, "null OUT ptr");  if (nsnull == aNewFrame) {    return NS_ERROR_NULL_POINTER;  }  nsFileControlFrame* it = new (aPresShell) nsFileControlFrame();  if (!it) {    return NS_ERROR_OUT_OF_MEMORY;  }  *aNewFrame = it;  return NS_OK;}