Bug 1170416 (part 4) - Remove some unnecessary casts. r=froydnj.

This commit is contained in:
Nicholas Nethercote 2015-05-20 21:16:59 -07:00
parent 265569e6b8
commit d09f9aaaa4
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public:
"nsBaseHashtable was not initialized properly.");
s_EnumReadArgs enumData = { aEnumFunc, aUserArg };
return PL_DHashTableEnumerate(const_cast<PLDHashTable*>(static_cast<const PLDHashTable*>(&this->mTable)),
return PL_DHashTableEnumerate(const_cast<PLDHashTable*>(&this->mTable),
s_EnumReadStub,
&enumData);
}

View File

@ -134,7 +134,7 @@ public:
"nsTHashtable was not initialized properly.");
return static_cast<EntryType*>(
PL_DHashTableSearch(const_cast<PLDHashTable*>(static_cast<const PLDHashTable*>(&mTable)),
PL_DHashTableSearch(const_cast<PLDHashTable*>(&mTable),
EntryType::KeyToPointer(aKey)));
}