Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=erahm

MozReview-Commit-ID: 8AvGwUQsdE8

--HG--
extra : rebase_source : 25b61a81b83ff3fa65ab15a23af92a56e3a6be12
This commit is contained in:
Sylvestre Ledru 2017-10-23 22:42:35 +02:00
parent 15f2be4d17
commit ae9444af4d
2 changed files with 3 additions and 3 deletions

View File

@ -414,7 +414,7 @@ template<class EntryType>
PLDHashNumber
nsTHashtable<EntryType>::s_HashKey(const void* aKey)
{
return EntryType::HashKey(static_cast<const KeyTypePointer>(aKey));
return EntryType::HashKey(static_cast<KeyTypePointer>(aKey));
}
template<class EntryType>
@ -423,7 +423,7 @@ nsTHashtable<EntryType>::s_MatchEntry(const PLDHashEntryHdr* aEntry,
const void* aKey)
{
return ((const EntryType*)aEntry)->KeyEquals(
static_cast<const KeyTypePointer>(aKey));
static_cast<KeyTypePointer>(aKey));
}
template<class EntryType>

View File

@ -18,7 +18,7 @@ inline bool IsASCII(char16_t aChar) {
inline const char16_t* aligned(const char16_t* aPtr, const uintptr_t aMask)
{
return reinterpret_cast<const char16_t*>(
reinterpret_cast<const uintptr_t>(aPtr) & ~aMask);
reinterpret_cast<uintptr_t>(aPtr) & ~aMask);
}
/**