NS_ADDREF(*result);
NS_ADDREF(pl); nsresult rv = pl->SetValueAsString(value); if (NS_FAILED(rv)) { NS_RELEASE(pl); return rv; } *result = pl;
NS_NewSVGLength(nsISVGLength** result,                float value,                PRUint16 unit){  *result = new nsSVGLength(value, unit);  if (!*result)    return NS_ERROR_OUT_OF_MEMORY;  NS_ADDREF(*result);  return NS_OK;}