зеркало из https://github.com/mozilla/gecko-dev.git
Bug 700659 - Slay nsHashSets in xpcom/base. r=khuey
This commit is contained in:
Родитель
f795f3de9b
Коммит
987c379263
|
@ -43,7 +43,8 @@
|
|||
#include "nsIMemoryReporter.h"
|
||||
#include "nsString.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsHashSets.h"
|
||||
#include "nsTHashtable.h"
|
||||
#include "nsHashKeys.h"
|
||||
#include <stdio.h>
|
||||
|
||||
namespace mozilla {
|
||||
|
@ -193,7 +194,7 @@ private:
|
|||
|
||||
bool mSearchedForLibxul;
|
||||
nsCString mLibxulDir;
|
||||
nsCStringHashSet mMozillaLibraries;
|
||||
nsTHashtable<nsCStringHashKey> mMozillaLibraries;
|
||||
};
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(MapsReporter, nsIMemoryMultiReporter)
|
||||
|
@ -206,7 +207,7 @@ MapsReporter::MapsReporter()
|
|||
for (PRUint32 i = 0; i < len; i++) {
|
||||
nsCAutoString str;
|
||||
str.Assign(mozillaLibraries[i]);
|
||||
mMozillaLibraries.Put(str);
|
||||
mMozillaLibraries.PutEntry(str);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче