Skip to content

Commit

Permalink
Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
Browse files Browse the repository at this point in the history
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.
  • Loading branch information
EricRahm committed Dec 7, 2017
1 parent 97713dc commit 10e7f2a
Show file tree
Hide file tree
Showing 56 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion dom/base/NodeInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "nsCycleCollectionParticipant.h"
#include "mozilla/dom/NameSpaceConstants.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "mozilla/Attributes.h"
#include "nsAtom.h"

Expand Down
2 changes: 1 addition & 1 deletion dom/base/nsAttrValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <type_traits>

#include "nscore.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsStringBuffer.h"
#include "nsColor.h"
#include "nsCaseTreatment.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/base/nsDOMString.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef nsDOMString_h___
#define nsDOMString_h___

#include "nsStringGlue.h"
#include "nsString.h"

inline bool DOMStringIsNull(const nsAString& aString)
{
Expand Down
2 changes: 1 addition & 1 deletion dom/base/nsIScriptContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define nsIScriptContext_h__

#include "nscore.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsISupports.h"
#include "nsCOMPtr.h"
#include "jspubtd.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/base/test/gtest/TestPlainTextSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "gtest/gtest.h"

#include "nsServiceManagerUtils.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsIDocumentEncoder.h"
#include "nsCRT.h"
#include "nsIParserUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/BindingDeclarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "mozilla/dom/DOMString.h"

#include "nsCOMPtr.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsTArray.h"

class nsIPrincipal;
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/DOMString.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef mozilla_dom_DOMString_h
#define mozilla_dom_DOMString_h

#include "nsStringGlue.h"
#include "nsString.h"
#include "nsStringBuffer.h"
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/ErrorResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "js/GCAnnotations.h"
#include "js/Value.h"
#include "nscore.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "mozilla/Assertions.h"
#include "mozilla/Move.h"
#include "nsTArray.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/Exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <stdint.h>
#include "jspubtd.h"
#include "nsIException.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "jsapi.h"

class nsIStackFrame;
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/Record.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "nsTHashtable.h"
#include "nsHashKeys.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsTArray.h"
#include "mozilla/Attributes.h"
#include "mozilla/Move.h"
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/nsIScriptError.idl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
interface nsIURI;

%{C++
#include "nsStringGlue.h" // for nsDependentCString
#include "nsString.h" // for nsDependentCString
%}

[scriptable, uuid(e8933fc9-c302-4e12-a55b-4f88611d9c6c)]
Expand Down
2 changes: 1 addition & 1 deletion dom/filesystem/GetDirectoryListingTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "mozilla/dom/UnionTypes.h"
#include "nsIFile.h"
#include "nsISimpleEnumerator.h"
#include "nsStringGlue.h"
#include "nsString.h"

namespace mozilla {
namespace dom {
Expand Down
2 changes: 1 addition & 1 deletion dom/filesystem/GetFileOrDirectoryTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "mozilla/dom/Promise.h"
#include "mozilla/dom/IPCBlobUtils.h"
#include "nsIFile.h"
#include "nsStringGlue.h"
#include "nsString.h"

namespace mozilla {
namespace dom {
Expand Down
2 changes: 1 addition & 1 deletion dom/filesystem/GetFilesTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "mozilla/dom/PFileSystemParams.h"
#include "mozilla/dom/Promise.h"
#include "nsIFile.h"
#include "nsStringGlue.h"
#include "nsString.h"

namespace mozilla {
namespace dom {
Expand Down
2 changes: 1 addition & 1 deletion dom/media/gmp/mozIGeckoMediaPluginService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%{C++
#include "mozilla/UniquePtr.h"
#include "nsTArray.h"
#include "nsStringGlue.h"
#include "nsString.h"
class GMPDecryptorProxy;
class GMPVideoDecoderProxy;
class GMPVideoEncoderProxy;
Expand Down
2 changes: 1 addition & 1 deletion dom/svg/SVGAttrValueWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* types don't need to be exported outside the SVG module.
*/

#include "nsStringGlue.h"
#include "nsString.h"

class nsSVGAngle;
class nsSVGIntegerPair;
Expand Down
2 changes: 1 addition & 1 deletion gfx/src/nsRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "nsRect.h" // for mozilla::gfx::IntRect, nsRect
#include "nsMargin.h" // for nsIntMargin
#include "nsRegionFwd.h" // for nsIntRegion
#include "nsStringGlue.h" // for nsCString
#include "nsString.h" // for nsCString
#include "xpcom-config.h" // for CPP_THROW_NEW
#include "mozilla/ArrayView.h" // for ArrayView
#include "mozilla/Move.h" // for mozilla::Move
Expand Down
2 changes: 1 addition & 1 deletion image/imgRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "nsCOMPtr.h"
#include "nsProxyRelease.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsError.h"
#include "nsIAsyncVerifyRedirectCallback.h"
#include "mozilla/Mutex.h"
Expand Down
2 changes: 1 addition & 1 deletion intl/locale/DateTimeFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <time.h>
#include "gtest/MozGtestFriend.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "prtime.h"
#include "unicode/udat.h"

Expand Down
2 changes: 1 addition & 1 deletion intl/unicharutil/util/ICUUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "mozilla/intl/LocaleService.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "unicode/uloc.h"
#include "unicode/unum.h"

Expand Down
2 changes: 1 addition & 1 deletion intl/unicharutil/util/ICUUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifdef MOZILLA_INTERNAL_API

#include "mozilla/Scoped.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "unicode/unum.h" // for UNumberFormat

class nsIContent;
Expand Down
2 changes: 1 addition & 1 deletion intl/unicharutil/util/nsBidiUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef nsBidiUtils_h__
#define nsBidiUtils_h__

#include "nsStringGlue.h"
#include "nsString.h"

/**
* Read ftp://ftp.unicode.org/Public/UNIDATA/ReadMe-Latest.txt
Expand Down
2 changes: 1 addition & 1 deletion intl/unicharutil/util/nsUnicharUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef nsUnicharUtils_h__
#define nsUnicharUtils_h__

#include "nsStringGlue.h"
#include "nsString.h"

/* (0x3131u <= (u) && (u) <= 0x318eu) => Hangul Compatibility Jamo */
/* (0xac00u <= (u) && (u) <= 0xd7a3u) => Hangul Syllables */
Expand Down
2 changes: 1 addition & 1 deletion ipc/ipdl/ipdl/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
'IPCMessageStart.h',
'ipc/IPCMessageUtils.h',
'mozilla/RefPtr.h',
'nsStringGlue.h',
'nsString.h',
'nsTArray.h',
'mozilla/ipc/ProtocolUtils.h',
'nsTHashtable.h',
Expand Down
2 changes: 1 addition & 1 deletion js/xpconnect/loader/mozJSSubScriptLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "mozilla/scache/StartupCacheUtils.h"
#include "mozilla/Unused.h"
#include "nsContentUtils.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsCycleCollectionParticipant.h"
#include "GeckoProfiler.h"

Expand Down
2 changes: 1 addition & 1 deletion js/xpconnect/src/XPCThrower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "jsprf.h"
#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/Exceptions.h"
#include "nsStringGlue.h"
#include "nsString.h"

using namespace mozilla;
using namespace mozilla::dom;
Expand Down
2 changes: 1 addition & 1 deletion js/xpconnect/src/xpcpublic.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "nsIGlobalObject.h"
#include "nsPIDOMWindow.h"
#include "nsWrapperCache.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsTArray.h"
#include "mozilla/dom/JSSlots.h"
#include "mozilla/fallible.h"
Expand Down
2 changes: 1 addition & 1 deletion js/xpconnect/tests/components/native/xpctest_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "nsISupports.h"
#include "nsMemory.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "xpctest_attributes.h"
#include "xpctest_params.h"
#include "xpctest_returncode.h"
Expand Down
2 changes: 1 addition & 1 deletion js/xpconnect/wrappers/AccessCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "jswrapper.h"
#include "js/Id.h"
#include "nsStringGlue.h"
#include "nsString.h"

class nsIPrincipal;

Expand Down
2 changes: 1 addition & 1 deletion layout/generic/nsIFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "nsITheme.h"
#include "nsLayoutUtils.h"
#include "nsQueryFrame.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsStyleContext.h"
#include "nsStyleStruct.h"
#include "Visibility.h"
Expand Down
2 changes: 1 addition & 1 deletion layout/style/BindingStyleRule.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define mozilla_BindingStyleRule_h__

#include "nscore.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "mozilla/css/Rule.h"
#include "mozilla/NotNull.h"

Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/ReferrerPolicy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef ReferrerPolicy_h__
#define ReferrerPolicy_h__

#include "nsStringGlue.h"
#include "nsString.h"
#include "nsIHttpChannel.h"
#include "nsUnicharUtils.h"

Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIURI.idl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/

%{C++
#include "nsStringGlue.h"
#include "nsString.h"

#undef GetPort // XXX Windows!
#undef SetPort // XXX Windows!
Expand Down
2 changes: 1 addition & 1 deletion netwerk/base/nsIURIMutator.idl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface nsIObjectInputStream;
interface nsIURIMutator;

%{C++
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsCOMPtr.h"

#undef SetPort // XXX Windows!
Expand Down
2 changes: 1 addition & 1 deletion netwerk/ipc/NeckoMessageUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "ipc/IPCMessageUtils.h"
#include "nsExceptionHandler.h"
#include "nsPrintfCString.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "prio.h"
#include "mozilla/net/DNS.h"
#include "TimingStruct.h"
Expand Down
2 changes: 1 addition & 1 deletion rdf/base/nsRDFResource.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "nsIRDFNode.h"
#include "nsIRDFResource.h"
#include "nscore.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "rdf.h"

class nsIRDFService;
Expand Down
2 changes: 1 addition & 1 deletion storage/mozStorageHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define MOZSTORAGEHELPER_H

#include "nsAutoPtr.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "mozilla/DebugOnly.h"
#include "nsIConsoleService.h"
#include "nsIScriptError.h"
Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/telemetry/Telemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "mozilla/TimeStamp.h"
#include "mozilla/StartupTimeline.h"
#include "nsTArray.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsXULAppAPI.h"

#include "mozilla/TelemetryHistogramEnums.h"
Expand Down
2 changes: 1 addition & 1 deletion toolkit/crashreporter/nsExceptionHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <stddef.h>
#include <stdint.h>
#include "nsError.h"
#include "nsStringGlue.h"
#include "nsString.h"

#if defined(XP_WIN32)
#ifdef WIN32_LEAN_AND_MEAN
Expand Down
2 changes: 1 addition & 1 deletion toolkit/system/osxproxy/ProxyUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef mozilla_toolkit_system_osxproxy_ProxyUtils_h
#define mozilla_toolkit_system_osxproxy_ProxyUtils_h

#include "nsStringGlue.h"
#include "nsString.h"

namespace mozilla {
namespace toolkit {
Expand Down
2 changes: 1 addition & 1 deletion toolkit/system/windowsproxy/ProxyUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef mozilla_toolkit_system_windowsproxy_ProxyUtils_h
#define mozilla_toolkit_system_windowsproxy_ProxyUtils_h

#include "nsStringGlue.h"
#include "nsString.h"

namespace mozilla {
namespace toolkit {
Expand Down
2 changes: 1 addition & 1 deletion tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "nsServiceManagerUtils.h"
#include "nsCOMPtr.h"
#include "nsAutoPtr.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h"
Expand Down
2 changes: 1 addition & 1 deletion widget/ContentEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "mozilla/dom/EventTarget.h"
#include "nsCOMPtr.h"
#include "nsRect.h"
#include "nsStringGlue.h"
#include "nsString.h"

class nsIContent;

Expand Down
2 changes: 1 addition & 1 deletion widget/IMEData.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "nsPoint.h"
#include "nsRect.h"
#include "nsStringGlue.h"
#include "nsString.h"
#include "nsXULAppAPI.h"
#include "Units.h"

Expand Down
Loading

0 comments on commit 10e7f2a

Please sign in to comment.