mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
15f2be4d17
commit
ae9444af4d
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user