# HG changeset patch # User Jorg K # Date 1504907427 -7200 # Node ID 128de925dde2fbd1e59af9b4baba8d78a41dbee9 # Parent 12af7884b97010692a8f1de99c7dc087303ada5f Bug 1393219 - remove superfluous parenthesis in mimedrft.cpp. r=aceman diff --git a/mailnews/mime/src/mimedrft.cpp b/mailnews/mime/src/mimedrft.cpp --- a/mailnews/mime/src/mimedrft.cpp +++ b/mailnews/mime/src/mimedrft.cpp @@ -92,17 +92,17 @@ mime_draft_data::mime_draft_data() : url // // Create a file for the a unique temp file // on the local machine. Caller must free memory // nsresult nsMsgCreateTempFile(const char *tFileName, nsIFile **tFile) { - if ((!tFileName) || (!*tFileName)) + if (!tFileName || !*tFileName) tFileName = SAFE_TMP_FILENAME; nsresult rv = GetSpecialDirectoryWithFileName(NS_OS_TEMP_DIR, tFileName, tFile); NS_ENSURE_SUCCESS(rv, rv); @@ -132,17 +132,17 @@ typedef enum { #ifdef NS_DEBUG extern "C" void mime_dump_attachments(nsMsgAttachmentData *attachData) { int32_t i = 0; class nsMsgAttachmentData *tmp = attachData; - while ((tmp) && (tmp->m_url)) + while (tmp && tmp->m_url) { printf("Real Name : %s\n", tmp->m_realName.get()); if (tmp->m_url) { ; printf("URL : %s\n", tmp->m_url->GetSpecOrDefault().get()); } @@ -1731,17 +1731,17 @@ mime_decompose_file_init_fn(void *stream newAttachment->m_realName.Adopt(MimeHeaders_get_name(headers, mdd->options)); contLoc = MimeHeaders_get(headers, HEADER_CONTENT_LOCATION, false, false); if (!contLoc) contLoc = MimeHeaders_get(headers, HEADER_CONTENT_BASE, false, false); if (!contLoc && !newAttachment->m_realName.IsEmpty()) workURLSpec = ToNewCString(newAttachment->m_realName); - if ((contLoc) && (!workURLSpec)) + if (contLoc && !workURLSpec) workURLSpec = strdup(contLoc); PR_FREEIF(contLoc); mdd->curAttachment = newAttachment; newAttachment->m_type.Adopt(MimeHeaders_get(headers, HEADER_CONTENT_TYPE, false, false)); //