зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d2697a43d6
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче