target.Assign(NS_LITERAL_STRING("%P1%"));
target.AssignLiteral("%P1%");
nsMsgBuildErrorMessageByID(PRInt32 msgID, nsString& retval, nsString* param0, nsString* param1){  nsresult rv;  nsCOMPtr<nsIMsgStringService> composebundle (do_GetService(NS_MSG_COMPOSESTRINGSERVICE_CONTRACTID, &rv));  nsXPIDLString msg;  if (composebundle)  {    composebundle->GetStringByID(msgID, getter_Copies(msg));    retval = msg;    nsString target;    if (param0)    {      target.Assign(NS_LITERAL_STRING("%P0%"));      retval.ReplaceSubstring(target, *param0);    }    if (param1)    {      target.Assign(NS_LITERAL_STRING("%P1%"));      retval.ReplaceSubstring(target, *param1);    }  }  return rv;}