Bug 1424552 - port bug 1423798 to mailnews: Add include of nsMemory.h where needed. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Sat, 09 Dec 2017 23:35:25 +0100
changeset 30583 f2dde79f7e44cc3546c75561da45d5c76853db57
parent 30582 8d075c2cd445af6010469446e73619839d3668f6
child 30584 0f8ba2af483996a51b2a1f645a3c1066d91c48c2
push id382
push userclokep@gmail.com
push dateMon, 12 Mar 2018 19:05:34 +0000
reviewersbustage-fix
bugs1424552, 1423798
Bug 1424552 - port bug 1423798 to mailnews: Add include of nsMemory.h where needed. rs=bustage-fix
mailnews/base/src/nsMsgAccountManager.cpp
mailnews/base/util/nsMsgIncomingServer.cpp
mailnews/base/util/nsMsgProtocol.cpp
mailnews/compose/src/nsSmtpServer.cpp
mailnews/extensions/bayesian-spam-filter/src/nsBayesianFilter.cpp
mailnews/news/src/nsNewsFolder.cpp
--- a/mailnews/base/src/nsMsgAccountManager.cpp
+++ b/mailnews/base/src/nsMsgAccountManager.cpp
@@ -16,16 +16,17 @@
 #include "nsMsgBaseCID.h"
 #include "nsMsgCompCID.h"
 #include "nsMsgDBCID.h"
 #include "prmem.h"
 #include "prcmon.h"
 #include "prthread.h"
 #include "plstr.h"
 #include "nsString.h"
+#include "nsMemory.h"
 #include "nsUnicharUtils.h"
 #include "nscore.h"
 #include "prprf.h"
 #include "nsIMsgFolderCache.h"
 #include "nsMsgUtils.h"
 #include "nsMsgDBFolder.h"
 #include "nsIFile.h"
 #include "nsIURL.h"
--- a/mailnews/base/util/nsMsgIncomingServer.cpp
+++ b/mailnews/base/util/nsMsgIncomingServer.cpp
@@ -7,16 +7,17 @@
 #include "nscore.h"
 #include "plstr.h"
 #include "prmem.h"
 #include "prprf.h"
 
 #include "nsIServiceManager.h"
 #include "nsCOMPtr.h"
 #include "nsString.h"
+#include "nsMemory.h"
 #include "nsISupportsPrimitives.h"
 
 #include "nsIMsgBiffManager.h"
 #include "nsMsgBaseCID.h"
 #include "nsMsgDBCID.h"
 #include "nsIMsgFolder.h"
 #include "nsMsgDBFolder.h"
 #include "nsIMsgFolderCache.h"
--- a/mailnews/base/util/nsMsgProtocol.cpp
+++ b/mailnews/base/util/nsMsgProtocol.cpp
@@ -1,15 +1,16 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "msgCore.h"
 #include "nsString.h"
+#include "nsMemory.h"
 #include "nsMsgProtocol.h"
 #include "nsIMsgMailNewsUrl.h"
 #include "nsIMsgMailSession.h"
 #include "nsMsgBaseCID.h"
 #include "nsIStreamTransportService.h"
 #include "nsISocketTransportService.h"
 #include "nsISocketTransport.h"
 #include "nsILoadGroup.h"
--- a/mailnews/compose/src/nsSmtpServer.cpp
+++ b/mailnews/compose/src/nsSmtpServer.cpp
@@ -12,16 +12,17 @@
 #include "nsIMsgAccountManager.h"
 #include "nsMsgBaseCID.h"
 #include "nsISmtpService.h"
 #include "nsMsgCompCID.h"
 #include "nsILoginInfo.h"
 #include "nsILoginManager.h"
 #include "nsIArray.h"
 #include "nsArrayUtils.h"
+#include "nsMemory.h"
 
 NS_IMPL_ADDREF(nsSmtpServer)
 NS_IMPL_RELEASE(nsSmtpServer)
 NS_INTERFACE_MAP_BEGIN(nsSmtpServer)
     NS_INTERFACE_MAP_ENTRY(nsISmtpServer)
     NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
     NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISmtpServer)
 NS_INTERFACE_MAP_END
--- a/mailnews/extensions/bayesian-spam-filter/src/nsBayesianFilter.cpp
+++ b/mailnews/extensions/bayesian-spam-filter/src/nsBayesianFilter.cpp
@@ -24,16 +24,17 @@
 #include "nsIMimeMiscStatus.h"
 #include "nsIPrefService.h"
 #include "nsIPrefBranch.h"
 #include "nsIStringEnumerator.h"
 #include "nsIObserverService.h"
 #include "nsIChannel.h"
 #include "nsDependentSubstring.h"
 #include "nsLWBrkCIID.h"
+#include "nsMemory.h"
 
 #include "mozilla/ArenaAllocatorExtensions.h" // for ArenaStrdup
 
 using namespace mozilla;
 
 // needed to mark attachment flag on the db hdr
 #include "nsIMsgHdr.h"
 
--- a/mailnews/news/src/nsNewsFolder.cpp
+++ b/mailnews/news/src/nsNewsFolder.cpp
@@ -60,16 +60,17 @@
 #include "nsILoginInfo.h"
 #include "nsILoginManager.h"
 #include "nsIPromptService.h"
 #include "nsEmbedCID.h"
 #include "nsIDOMWindow.h"
 #include "mozilla/Services.h"
 #include "nsAutoPtr.h"
 #include "nsIInputStream.h"
+#include "nsMemory.h"
 
 static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
 
 // ###tw  This really ought to be the most
 // efficient file reading size for the current
 // operating system.
 #define NEWSRC_FILE_BUFFER_SIZE 1024