mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
Bug 708901 - Migrate to nsTHashSet in dom/filesystem. r=baku
Depends on D108594 Differential Revision: https://phabricator.services.mozilla.com/D108595
This commit is contained in:
parent
cf4cc2d7de
commit
1657ef316a
@ -373,7 +373,7 @@ nsresult GetFilesHelperBase::AddExploredDirectory(nsIFile* aDir) {
|
||||
}
|
||||
}
|
||||
|
||||
mExploredDirectories.PutEntry(path);
|
||||
mExploredDirectories.Insert(path);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "nsCycleCollectionTraversalCallback.h"
|
||||
#include "nsHashKeys.h"
|
||||
#include "nsTArray.h"
|
||||
#include "nsTHashtable.h"
|
||||
#include "nsTHashSet.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
class nsIGlobalObject;
|
||||
@ -59,7 +59,7 @@ class GetFilesHelperBase {
|
||||
|
||||
// We populate this array in the I/O thread with the BlobImpl.
|
||||
FallibleTArray<RefPtr<BlobImpl>> mTargetBlobImplArray;
|
||||
nsTHashtable<nsStringHashKey> mExploredDirectories;
|
||||
nsTHashSet<nsString> mExploredDirectories;
|
||||
};
|
||||
|
||||
// Retrieving the list of files can be very time/IO consuming. We use this
|
||||
|
Loading…
x
Reference in New Issue
Block a user