зеркало из https://github.com/mozilla/gecko-dev.git
01e0dbf44b
This patch simplifies nsStaticCaseInsensitiveNameTable greatly by taking advantage of the following observations. - |new| is infallible, so |new nsStaticCaseInsensitiveNameTable()| calls don't need their return value checked. - nsStaticCaseInsensitiveNameTable::Init() checks if any of the added entries differ only in case, so the callers of that function don't need to do the same check. - nsStaticCaseInsensitiveNameTable::Init() never returns false because moz_xmalloc() is infallible. (Its callers never check the return value anyway.) So it can be merged into the constructor. And ~nsStaticCaseInsensitiveNameTable() need not null-check |mNameArray|. - PLDHashTable now has an initializing constructor and destructor, so these can be used in nsStaticCaseInsensitiveNameTable, thus avoiding manual PLD_HashTable{Init,Finish}() calls. |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |