Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru.

This commit is contained in:
Nicholas Nethercote
2015-05-21 00:34:25 -07:00
parent cc74834294
commit f9fdfba566
30 changed files with 120 additions and 194 deletions

View File

@@ -207,14 +207,13 @@ nsCommandParams::RemoveValue(const char* aName)
nsCommandParams::HashEntry*
nsCommandParams::GetNamedEntry(const char* aName)
{
return (HashEntry*)PL_DHashTableSearch(&mValuesHash, (void*)aName);
return static_cast<HashEntry*>(mValuesHash.Search((void*)aName));
}
nsCommandParams::HashEntry*
nsCommandParams::GetOrMakeEntry(const char* aName, uint8_t aEntryType)
{
HashEntry* foundEntry =
(HashEntry*)PL_DHashTableSearch(&mValuesHash, (void*)aName);
auto foundEntry = static_cast<HashEntry*>(mValuesHash.Search((void*)aName));
if (foundEntry) { // reuse existing entry
foundEntry->Reset(aEntryType);
return foundEntry;