Skip to content

Commit

Permalink
Bug 1423798 - Remove headers included for backwards compat in nsStrin…
Browse files Browse the repository at this point in the history
…g.h. r=njn on a CLOSED TREE

Remove the headers included for "backwards compatibility" and just include them
where required.

--HG--
extra : source : e2beba7e6875120ebbbcadf24bcbcb5b86411a94
extra : amend_source : 11f07a27431cd468511f0bd45afe36150c6e342c
  • Loading branch information
EricRahm committed Dec 7, 2017
1 parent 57cb45d commit 6058ba5
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions dom/base/NodeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "nsString.h"
#include "mozilla/Attributes.h"
#include "nsAtom.h"
#include "plhash.h"

class nsIDocument;
class nsNodeInfoManager;
Expand Down
1 change: 1 addition & 0 deletions dom/offline/nsDOMOfflineResourceList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "mozilla/dom/DOMStringList.h"
#include "nsIPrefetchService.h"
#include "nsCPrefetchService.h"
#include "nsMemory.h"
#include "nsNetUtil.h"
#include "nsNetCID.h"
#include "nsServiceManagerUtils.h"
Expand Down
1 change: 1 addition & 0 deletions dom/xslt/xpath/txXPCOMExtensionFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "nsDependentString.h"
#include "nsAtom.h"
#include "nsIInterfaceInfoManager.h"
#include "nsMemory.h"
#include "nsServiceManagerUtils.h"
#include "txExpr.h"
#include "txIFunctionEvaluationContext.h"
Expand Down
1 change: 1 addition & 0 deletions dom/xslt/xslt/txMozillaXSLTProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "nsILoadGroup.h"
#include "nsIStringBundle.h"
#include "nsIURI.h"
#include "nsMemory.h"
#include "XPathResult.h"
#include "txExecutionState.h"
#include "txMozillaTextOutput.h"
Expand Down
1 change: 1 addition & 0 deletions extensions/auth/nsAuthGSSAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "nsIServiceManager.h"
#include "nsMemory.h"
#include "nsNativeCharsetUtils.h"
#include "mozilla/Telemetry.h"

Expand Down
1 change: 1 addition & 0 deletions extensions/auth/nsAuthSSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "nsIServiceManager.h"
#include "nsIDNSService.h"
#include "nsIDNSRecord.h"
#include "nsMemory.h"
#include "nsNetCID.h"
#include "nsCOMPtr.h"
#include "nsICryptoHash.h"
Expand Down
1 change: 1 addition & 0 deletions extensions/auth/nsAuthSambaNTLM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "nsAuth.h"
#include "nsAuthSambaNTLM.h"
#include "nsMemory.h"
#include "prenv.h"
#include "plbase64.h"
#include "prerror.h"
Expand Down
1 change: 1 addition & 0 deletions extensions/spellcheck/src/mozEnglishWordUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "nsUnicodeProperties.h"
#include "nsCRT.h"
#include "mozilla/Likely.h"
#include "nsMemory.h"

NS_IMPL_CYCLE_COLLECTING_ADDREF(mozEnglishWordUtils)
NS_IMPL_CYCLE_COLLECTING_RELEASE(mozEnglishWordUtils)
Expand Down
1 change: 1 addition & 0 deletions intl/hyphenation/glue/nsHyphenationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "nsCRT.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h"
#include "nsMemory.h"

using namespace mozilla;

Expand Down
1 change: 1 addition & 0 deletions layout/style/nsCSSDataBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "nsCSSProps.h"
#include "nsCSSPropertyIDSet.h"
#include "nsCSSValue.h"
#include "nsMemory.h"
#include "nsStyleStruct.h"

struct nsRuleData;
Expand Down
1 change: 1 addition & 0 deletions netwerk/cache/nsDiskCacheDeviceSQL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "nsIInputStream.h"
#include "nsIOutputStream.h"
#include "nsSerializationHelper.h"
#include "nsMemory.h"

#include "mozIStorageService.h"
#include "mozIStorageStatement.h"
Expand Down
1 change: 1 addition & 0 deletions security/manager/ssl/nsKeygenHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "nsITokenDialogs.h"
#include "nsKeygenHandlerContent.h"
#include "nsKeygenThread.h"
#include "nsMemory.h"
#include "nsNSSComponent.h" // for PIPNSS string bundle calls.
#include "nsNSSHelper.h"
#include "nsReadableUtils.h"
Expand Down
1 change: 1 addition & 0 deletions storage/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <utility>

#include "nsIVariant.h"
#include "nsMemory.h"
#include "nsString.h"
#include "nsTArray.h"

Expand Down
1 change: 1 addition & 0 deletions xpcom/base/LogModulePrefWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "mozilla/Logging.h"
#include "mozilla/Preferences.h"
#include "nsMemory.h"
#include "nsString.h"
#include "nsXULAppAPI.h"
#include "base/process_util.h"
Expand Down
8 changes: 0 additions & 8 deletions xpcom/string/nsString.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
#include "nsDependentSubstring.h"
#include "nsReadableUtils.h"

#include <new>

// enable support for the obsolete string API if not explicitly disabled
#ifndef MOZ_STRING_WITH_OBSOLETE_API
#define MOZ_STRING_WITH_OBSOLETE_API 1
Expand Down Expand Up @@ -154,10 +152,4 @@ class NS_ConvertUTF8toUTF16 : public nsAutoString
#include "nsLiteralString.h"
#include "nsPromiseFlatString.h"

// need to include these for backwards compatibility
#include "nsMemory.h"
#include <string.h>
#include <stdio.h>
#include "plhash.h"

#endif // !defined(nsString_h___)

0 comments on commit 6058ba5

Please sign in to comment.