mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1424834 - LinkedList::sizeOfExcludingThis should use ConstRawType instead of T* r=njn
MozReview-Commit-ID: 2EM9cEOAkIl --HG-- extra : rebase_source : b3950ed06e1bc014fff9aa1deb5c2387fb2eb5bb
This commit is contained in:
parent
d2697a43d6
commit
a659128162
@ -551,7 +551,7 @@ public:
|
||||
size_t sizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const
|
||||
{
|
||||
size_t n = 0;
|
||||
for (const T* t = getFirst(); t; t = t->getNext()) {
|
||||
for (ConstRawType t = getFirst(); t; t = t->getNext()) {
|
||||
n += aMallocSizeOf(t);
|
||||
}
|
||||
return n;
|
||||
|
@ -330,7 +330,7 @@ static size_t
|
||||
SizeOfResolveHostCallbackListExcludingHead(const mozilla::LinkedList<RefPtr<nsResolveHostCallback>>& aCallbacks,
|
||||
MallocSizeOf mallocSizeOf)
|
||||
{
|
||||
size_t n = 0; // TODO: should be aCallbacks.sizeOfIncludingThis(mallocSizeOf);
|
||||
size_t n = aCallbacks.sizeOfIncludingThis(mallocSizeOf);
|
||||
|
||||
for (const nsResolveHostCallback* t = aCallbacks.getFirst(); t; t = t->getNext()) {
|
||||
n += t->SizeOfIncludingThis(mallocSizeOf);
|
||||
|
Loading…
Reference in New Issue
Block a user