зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1406829 (part 1) - Add a comment about nsAtom::hash(). r=froydnj.
This commit is contained in:
Родитель
715045bde3
Коммит
b54a014b55
|
@ -67,7 +67,10 @@ public:
|
|||
}
|
||||
|
||||
// A hashcode that is better distributed than the actual atom pointer, for
|
||||
// use in situations that need a well-distributed hashcode.
|
||||
// use in situations that need a well-distributed hashcode. It's called hash()
|
||||
// rather than Hash() so we can use mozilla::BloomFilter<N, nsAtom>, because
|
||||
// BloomFilter requires elements to implement a function called hash().
|
||||
//
|
||||
uint32_t hash() const
|
||||
{
|
||||
MOZ_ASSERT(!IsHTML5Atom());
|
||||
|
|
Загрузка…
Ссылка в новой задаче