Bug 1406829 (part 1) - Add a comment about nsAtom::hash(). r=froydnj.

This commit is contained in:
Nicholas Nethercote 2017-09-26 16:20:57 +10:00
Родитель 715045bde3
Коммит b54a014b55
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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());