mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1225682 - Don't use nsAuto{,C}String as class member variables in js/xpconnect/. r=mccr8
This commit is contained in:
parent
ce9a5909d1
commit
88221586dd
@ -1911,7 +1911,7 @@ ReportZoneStats(const JS::ZoneStats& zStats,
|
||||
bool anonymize,
|
||||
size_t* gcTotalOut = nullptr)
|
||||
{
|
||||
const nsAutoCString& pathPrefix = extras.pathPrefix;
|
||||
const nsCString& pathPrefix = extras.pathPrefix;
|
||||
size_t gcTotal = 0, sundriesGCHeap = 0, sundriesMallocHeap = 0;
|
||||
|
||||
MOZ_ASSERT(!gcTotalOut == zStats.isTotals);
|
||||
@ -2223,8 +2223,8 @@ ReportCompartmentStats(const JS::CompartmentStats& cStats,
|
||||
static const nsDependentCString addonPrefix("explicit/add-ons/");
|
||||
|
||||
size_t gcTotal = 0, sundriesGCHeap = 0, sundriesMallocHeap = 0;
|
||||
nsAutoCString cJSPathPrefix = extras.jsPathPrefix;
|
||||
nsAutoCString cDOMPathPrefix = extras.domPathPrefix;
|
||||
nsAutoCString cJSPathPrefix(extras.jsPathPrefix);
|
||||
nsAutoCString cDOMPathPrefix(extras.domPathPrefix);
|
||||
nsresult rv;
|
||||
|
||||
MOZ_ASSERT(!gcTotalOut == cStats.isTotals);
|
||||
|
@ -371,7 +371,7 @@ public:
|
||||
ZoneStatsExtras()
|
||||
{}
|
||||
|
||||
nsAutoCString pathPrefix;
|
||||
nsCString pathPrefix;
|
||||
|
||||
private:
|
||||
ZoneStatsExtras(const ZoneStatsExtras& other) = delete;
|
||||
@ -386,8 +386,8 @@ public:
|
||||
: sizeOfXPCPrivate(0)
|
||||
{}
|
||||
|
||||
nsAutoCString jsPathPrefix;
|
||||
nsAutoCString domPathPrefix;
|
||||
nsCString jsPathPrefix;
|
||||
nsCString domPathPrefix;
|
||||
nsCOMPtr<nsIURI> location;
|
||||
size_t sizeOfXPCPrivate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user