Bug 775670 - Build Thunderbird using clang. p=mconley,fallen r=jhopkins
authorJohn Hopkins <jhopkins@mozilla.com>
Fri, 20 Jul 2012 11:39:16 -0400
changeset 13084 ec138f1fcabf10f11ba4a4ba662cba34ab625691
parent 13083 b0d37f5b17ee4f4917fc4aa6835c9640325b4e88
child 13085 60752e4ba8052b67e27dad45c0d05411b310427c
push id701
push userbugzilla@standard8.plus.com
push dateMon, 08 Oct 2012 19:06:59 +0000
treeherdercomm-beta@c9696e33af8e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhopkins
bugs775670
Bug 775670 - Build Thunderbird using clang. p=mconley,fallen r=jhopkins
mailnews/compose/src/nsMsgAppleEncode.cpp
mailnews/import/eudora/src/nsEudoraFilters.cpp
--- a/mailnews/compose/src/nsMsgAppleEncode.cpp
+++ b/mailnews/compose/src/nsMsgAppleEncode.cpp
@@ -101,17 +101,17 @@ int fill_apple_mime_header(
 						strlen(p_ap_encode_obj->fname));
 	if (status != noErr)
 		return status;
 		
 	PR_snprintf(tmpstr, sizeof(tmpstr),
 			"\"\r\nContent-Disposition: inline; filename=\"%s\"\r\n\r\n\r\n--=\r\n",
 			p_ap_encode_obj->fname);
 #endif /* 0 */
-	PR_snprintf(tmpstr, sizeof(tmpstr), "--%s"CRLF, p_ap_encode_obj->boundary);
+	PR_snprintf(tmpstr, sizeof(tmpstr), "--%s" CRLF, p_ap_encode_obj->boundary);
 	status = write_stream(p_ap_encode_obj, 
 						tmpstr, 
 						strlen(tmpstr));
 	return status;
 } 
 
 int ap_encode_file_infor(
 	appledouble_encode_object *p_ap_encode_obj)
@@ -342,17 +342,17 @@ int ap_encode_header(
 		status = finish64(p_ap_encode_obj);
 		if (status != noErr)
 			return status;
 		
 		/*
 		** write out the boundary 
 		*/
 		PR_snprintf(rd_buff, sizeof(rd_buff),
-						CRLF"--%s"CRLF, 
+						CRLF "--%s" CRLF, 
 						p_ap_encode_obj->boundary);
 					
 		status = write_stream(p_ap_encode_obj,
 						rd_buff,
 						strlen(rd_buff));
 		if (status == noErr)
 			status = errDone;
 	}
@@ -483,17 +483,17 @@ int ap_encode_data(
 		}
 
 		/*
 		**	the data portion header information.
 		*/
         nsCAutoString leafName;
         resFile->GetNativeLeafName(leafName);
 		PR_snprintf(rd_buff, sizeof(rd_buff),
-			"Content-Type: %s; name=\"%s\"" CRLF "Content-Transfer-Encoding: base64" CRLF "Content-Disposition: inline; filename=\"%s\""CRLF CRLF,
+			"Content-Type: %s; name=\"%s\"" CRLF "Content-Transfer-Encoding: base64" CRLF "Content-Disposition: inline; filename=\"%s\"" CRLF CRLF,
 			magic_type,
 			leafName.get(),
 			leafName.get());
 			
 		status = write_stream(p_ap_encode_obj, 
 					rd_buff, 
 					strlen(rd_buff)); 
 		if (status != noErr)
@@ -526,17 +526,17 @@ int ap_encode_data(
 
 		status = finish64(p_ap_encode_obj);
 		if (status != noErr)
 			return status;
 		
 		/* write out the boundary 	*/
 		
 		PR_snprintf(rd_buff, sizeof(rd_buff),
-						CRLF"--%s--"CRLF CRLF, 
+						CRLF "--%s--" CRLF CRLF, 
 						p_ap_encode_obj->boundary);
 	
 		status = write_stream(p_ap_encode_obj,
 						rd_buff,
 						strlen(rd_buff));
 	
 		if (status == noErr)				
 			status = errDone;
--- a/mailnews/import/eudora/src/nsEudoraFilters.cpp
+++ b/mailnews/import/eudora/src/nsEudoraFilters.cpp
@@ -558,25 +558,25 @@ nsresult nsEudoraFilters::EnableFilter(b
 #define LDAQ "\xC7"
 #define RDAQ "\xC8"
 #endif
 
 static const char* gStandardHeaders[] =
 {
 // Eudora string        nsMsgSearchAttribValue
 // -------------        ----------------------
-    "Subject:",              // Subject
-    "From:",                 // Sender
-    LDAQ"Body"RDAQ,          // Body
-    "Date:",                 // Date
-    "X-Priority:",           // Priority
-    "",                      // MsgStatus
-    "To:",                   // To
-    "Cc:",                   // CC
-    LDAQ"Any Recipient"RDAQ, // ToOrCC
+    "Subject:",                // Subject
+    "From:",                   // Sender
+    LDAQ "Body" RDAQ,          // Body
+    "Date:",                   // Date
+    "X-Priority:",             // Priority
+    "",                        // MsgStatus
+    "To:",                     // To
+    "Cc:",                     // CC
+    LDAQ "Any Recipient" RDAQ, // ToOrCC
     NULL
 };
 
 static PRInt32 FindHeader(const char* pHeader)
 {
   for (PRInt32 i = 0; gStandardHeaders[i]; i++)
   {
     if (*gStandardHeaders[i] && !PL_strcasecmp(pHeader, gStandardHeaders[i]))